public abstract class AbstractProjectService extends Object implements ProjectService
Constructor and Description |
---|
AbstractProjectService() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ProjectServiceListener listener)
Adds a project service listener
|
protected void |
notifyAfterLoad(Map<String,ProjectFile> projectFiles)
Call after a project was loaded.
|
protected void |
notifyBeforeSave(Map<String,ProjectFile> projectFiles)
Call before a project is saved.
|
protected void |
notifyClean()
Call when the project is cleaned.
|
protected void |
notifyExportConfigurationChanged()
Called when the export configurations have changed
|
void |
notifyProjectInfoChanged(ProjectInfo info)
Called when the project information has been changed.
|
protected void |
notifyResourceAdded(String actionId,
Resource resource)
Call after a new resource was added.
|
protected void |
notifyResourcesRemoved(String actionId,
List<Resource> resources)
Call when resources for an action have been removed.
|
void |
removeListener(ProjectServiceListener listener)
Removes a project service listener
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addExportConfigurations, clean, executeAndRemember, getConfigurationService, getExportConfigurationNames, getLoadLocation, getLocationUpdater, getProjectInfo, getResources, hasResources, isChanged, load, loadTemplate, open, rememberIO, removeExportConfigurations, removeResource, removeResources, save, saveAs, setChanged, updateProjectInfo
public void addListener(ProjectServiceListener listener)
ProjectService
addListener
in interface ProjectService
listener
- the listener to addProjectService.addListener(ProjectServiceListener)
public void removeListener(ProjectServiceListener listener)
ProjectService
removeListener
in interface ProjectService
listener
- the listener to removeProjectService.removeListener(ProjectServiceListener)
protected void notifyBeforeSave(Map<String,ProjectFile> projectFiles)
projectFiles
- the map of additional project files, listeners may
add additional files to the mapprotected void notifyAfterLoad(Map<String,ProjectFile> projectFiles)
projectFiles
- the additional project files that were loaded,
listeners may use them to update their stateprotected void notifyResourceAdded(String actionId, Resource resource)
actionId
- the action the resource is associated toresource
- the added resourceprotected void notifyResourcesRemoved(String actionId, List<Resource> resources)
actionId
- the action identifierresources
- the removed resourcesprotected void notifyClean()
protected void notifyExportConfigurationChanged()
public void notifyProjectInfoChanged(ProjectInfo info)
info
- the updated project informationBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a