java.lang.Object
de.grogra.pf.registry.Plugin
de.grogra.projectmanager.ProjectManagerImpl
- All Implemented Interfaces:
RegistryContext
,ProjectManager
-
Constructor Summary
Constructors -
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 registrycreateProject
(ProjectFactory projectFactory, Registry r) void
disconnectProject
(ProjectWorkbench client) Unlink workbench from a projectstatic ProjectManager
required method to unsure there is only one instance of project manager per groimp instanceFind all opened workbench linked to a project.getProject
(Object id) Get exiting Project by IDgetProjectId
(Project ep) get the Id of the Projectvoid
linkWorkbenchToProject
(Project project, ProjectWorkbench client) Add a workbench to a reference to a workbench to the project directory.String[]
List of open project name.openProject
(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
-
createProject
- Specified by:
createProject
in interfaceProjectManager
- 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
get the Id of the 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
List of open project name.- Specified by:
listOpenProjects
in interfaceProjectManager
-
getLinkedWorkbenches
Find all opened workbench linked to a project.- Specified by:
getLinkedWorkbenches
in interfaceProjectManager
- Returns:
-