public class ProjectServiceImpl extends AbstractProjectService implements ProjectService
ProjectService
.Constructor and Description |
---|
ProjectServiceImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addExportConfigurations(List<IOConfiguration> confs)
Add the given configuration to the export configurations of the project
|
void |
clean()
Clean the project, reset all services.
|
void |
executeAndRemember(IOConfiguration conf)
Execute and remember the given I/O configuration.
|
ComplexConfigurationService |
getConfigurationService()
Get a project scoped configuration service
|
List<String> |
getExportConfigurationNames()
Get all the names of the saved export configurations
|
URI |
getLoadLocation()
Returns the location the current project was loaded from.
|
LocationUpdater |
getLocationUpdater()
Returns the location updater for the current project.
|
ProjectInfo |
getProjectInfo()
Get general information about the current project
|
Iterable<? extends Resource> |
getResources()
Get the resources associated with the current project.
|
boolean |
hasResources(String actionId)
Determines if there are any resources loaded for a given action.
|
boolean |
isChanged()
Get if the project content is changed
|
void |
load(URI uri)
Load a project from a given file.
|
void |
loadTemplate(Project project)
Load a template project.
|
void |
open()
Open a project.
|
void |
rememberIO(String actionId,
String providerId,
IOProvider provider)
Remember I/O operations after the execution of the corresponding I/O
provider for storing it in the project.
|
void |
removeExportConfigurations(List<IOConfiguration> confs)
Remove the given configurations from the export configurations of the
project
|
void |
removeResource(String resourceId)
Remove a specific resource.
|
List<? extends Resource> |
removeResources(String actionId)
Remove all resources of the specified actionId from the project.
|
void |
save()
Save the project.
|
void |
saveAs()
Save the project to the given file
|
void |
setChanged()
Inform the service about a change in the project content.
|
void |
updateProjectInfo(ProjectDescription info)
Update the project information with the given description.
|
addListener, notifyAfterLoad, notifyBeforeSave, notifyClean, notifyExportConfigurationChanged, notifyProjectInfoChanged, notifyResourceAdded, notifyResourcesRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
public boolean isChanged()
ProjectService
isChanged
in interface ProjectService
ProjectService.isChanged()
public void setChanged()
ProjectService
setChanged
in interface ProjectService
ProjectService.setChanged()
public void clean()
ProjectService
clean
in interface ProjectService
ProjectService.clean()
public void load(URI uri)
ProjectService
load
in interface ProjectService
uri
- the project fileProjectService.load(URI)
public void loadTemplate(Project project)
ProjectService
loadTemplate
in interface ProjectService
project
- the project templatepublic void save()
ProjectService
ProjectService.saveAs()
if needed.save
in interface ProjectService
ProjectService.save()
public ComplexConfigurationService getConfigurationService()
ProjectService
getConfigurationService
in interface ProjectService
ProjectService.getConfigurationService()
public void saveAs()
ProjectService
saveAs
in interface ProjectService
ProjectService.saveAs()
public void open()
ProjectService
open
in interface ProjectService
ProjectService.open()
public ProjectInfo getProjectInfo()
ProjectService
getProjectInfo
in interface ProjectService
ProjectService.getProjectInfo()
public void updateProjectInfo(ProjectDescription info)
ProjectService
updateProjectInfo
in interface ProjectService
info
- the project information to merge with the projectpublic void rememberIO(String actionId, String providerId, IOProvider provider)
ProjectService
rememberIO
in interface ProjectService
actionId
- the I/O action identifierproviderId
- the I/O provider identifierprovider
- the I/O provider instance used for the I/O operationProjectService.rememberIO(String, String, IOProvider)
public List<? extends Resource> removeResources(String actionId)
ProjectService
removeResources
in interface ProjectService
actionId
- the I/O action identifierProjectService.rememberIO(String, String, IOProvider)
public void removeResource(String resourceId)
ProjectService
removeResource
in interface ProjectService
resourceId
- the resource identifierpublic boolean hasResources(String actionId)
ProjectService
hasResources
in interface ProjectService
actionId
- the action identifierpublic void executeAndRemember(IOConfiguration conf)
ProjectService
executeAndRemember
in interface ProjectService
conf
- the I/O configurationpublic Iterable<? extends Resource> getResources()
ProjectService
getResources
in interface ProjectService
public LocationUpdater getLocationUpdater()
ProjectService
getLocationUpdater
in interface ProjectService
ProjectService.getLocationUpdater()
public void addExportConfigurations(List<IOConfiguration> confs)
ProjectService
addExportConfigurations
in interface ProjectService
confs
- the configurations which should be addedProjectService.addExportConfigurations(java.util.List)
public void removeExportConfigurations(List<IOConfiguration> confs)
ProjectService
removeExportConfigurations
in interface ProjectService
confs
- the list of configurations which should be removedProjectService.removeExportConfigurations(java.util.List)
public List<String> getExportConfigurationNames()
ProjectService
getExportConfigurationNames
in interface ProjectService
ProjectService.getExportConfigurationNames()
public URI getLoadLocation()
ProjectService
null
.getLoadLocation
in interface ProjectService
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a