java.lang.Object
de.grogra.pf.registry.Plugin
de.grogra.projectmanager.ProjectManagerImpl
- All Implemented Interfaces:
RegistryContext
,ProjectManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconnectToProject
(Object id, ProjectWorkbenchLauncher wbLauncher) create a new Workbench around the selected Project and register the Workbench It pushes the registry 's project into the wbcreateProject
(ProjectFactory projectFactory) - Call a ProjectFactory to create a new ExecutableProject based on a child registryvoid
disconnectProject
(ProjectWorkbench client) Unlink workbench from a projectstatic ProjectManager
required method to unsure there is only one instance of project manager per groimp instanceget the workbenches that are linked to the project pgetProject
(Object id) Get exiting Project by IDgetProjectId
(Project ep) Get the id of a projectvoid
linkWorkbenchToProject
(Object projectId, ProjectWorkbench client) Add a workbench to a reference to a workbench to the project directory.String[]
iterate over all subfolders and select the project elements, to create a listopenProject
(ProjectFactory projectFactory, FilterSource fs, Map initParams) Open an existing project into a workbench created by the uiapp (client)Methods inherited from class de.grogra.pf.registry.Plugin
checkConfigure, getI18NBundle, getPluginDescriptor, getRegistry, initialize, shutdown, startup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Constructor Details
-
ProjectManagerImpl
public ProjectManagerImpl()
-
-
Method Details
-
getInstance
Description copied from interface:ProjectManager
required method to unsure there is only one instance of project manager per groimp instance- Returns:
-
linkWorkbenchToProject
Add a workbench to a reference to a workbench to the project directory. The reference is named after the application type, meaning that each UIApplication can only register one workbench per Project- Specified by:
linkWorkbenchToProject
in interfaceProjectManager
- Parameters:
projectId
-client
-
-
createProject
- Call a ProjectFactory to create a new ExecutableProject based on a child registry. - Register this new Project to the manager and than call the UIApplication to create a new Workbench around the project - Return the Workbench to the Project. The basic idea of the createNewWorkbench function is that a "Naked" Project should not leave the ProjectManager- Specified by:
createProject
in interfaceProjectManager
- Returns:
- Throws:
IOException
-
openProject
public Project openProject(ProjectFactory projectFactory, FilterSource fs, Map initParams) throws IOException Description copied from interface:ProjectManager
Open an existing project into a workbench created by the uiapp (client)- Specified by:
openProject
in interfaceProjectManager
- Returns:
- Throws:
IOException
-
getProjectId
Description copied from interface:ProjectManager
Get the id of a project- Specified by:
getProjectId
in interfaceProjectManager
- Returns:
-
getProject
Description copied from interface:ProjectManager
Get exiting Project by ID- Specified by:
getProject
in interfaceProjectManager
-
connectToProject
create a new Workbench around the selected Project and register the Workbench It pushes the registry 's project into the wb- Specified by:
connectToProject
in interfaceProjectManager
- Returns:
-
disconnectProject
Unlink workbench from a project- Specified by:
disconnectProject
in interfaceProjectManager
-
listOpenProjects
iterate over all subfolders and select the project elements, to create a list- Specified by:
listOpenProjects
in interfaceProjectManager
-
getLinkedWorkbenches
Description copied from interface:ProjectManager
get the workbenches that are linked to the project p- Specified by:
getLinkedWorkbenches
in interfaceProjectManager
- Returns:
-