java.lang.Object
de.grogra.cli.CLIWorkbenchManager
- All Implemented Interfaces:
RegistryContext
,WorkbenchManager
- Direct Known Subclasses:
APIWorkbenchManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close a workbenchvoid
closeWorkbench
(ProjectWorkbench w, Command afterDispose) close a workbenchprotected ProjectWorkbench
Create a new workbench around a new empty projectcreateWorkbench
(ProjectFactory pf, FilterSource fs, Map initParams) Create a new wb around an loaded projectcreateWorkbench
(Object projectId) Create a new workbench around the Project of the given idvoid
unregister the workbench to the managerReturns theRegistry
which is linked with this instance.getWorkbench
(Object id) return the workbench as with given idreturn the object workbenchesReturning the ID of a workbenchboolean
chekc if the given workbench is handled by this managerreturn the list of managed workbenches handled by this managerString[]
return the list of managed workbenches handled by this managervoid
register the workbench to the manager Should probably be done with a lock to prevent asynchronous changes
-
Field Details
-
app
-
-
Constructor Details
-
CLIWorkbenchManager
-
-
Method Details
-
getRegistry
Description copied from interface:RegistryContext
Returns theRegistry
which is linked with this instance.- Specified by:
getRegistry
in interfaceRegistryContext
- Returns:
- the registry linked with this instance
-
getWorkbenchId
Description copied from interface:WorkbenchManager
Returning the ID of a workbench- Specified by:
getWorkbenchId
in interfaceWorkbenchManager
- Returns:
-
registerWorkbench
register the workbench to the manager Should probably be done with a lock to prevent asynchronous changes- Specified by:
registerWorkbench
in interfaceWorkbenchManager
-
deregisterWorkbench
unregister the workbench to the manager- Specified by:
deregisterWorkbench
in interfaceWorkbenchManager
-
getWorkbench
return the workbench as with given id- Specified by:
getWorkbench
in interfaceWorkbenchManager
- Returns:
- Throws:
IndexOutOfBoundsException
-
listWorkbenches
return the list of managed workbenches handled by this manager- Specified by:
listWorkbenches
in interfaceWorkbenchManager
- Returns:
- a list of Workbench (shouldn't this return Workbench[]? and an array?)
-
listWorkbenchesName
return the list of managed workbenches handled by this manager -
closeWorkbench
close a workbench- Specified by:
closeWorkbench
in interfaceWorkbenchManager
-
closeWorkbench
close a workbench- Specified by:
closeWorkbench
in interfaceWorkbenchManager
-
isManager
chekc if the given workbench is handled by this manager- Specified by:
isManager
in interfaceWorkbenchManager
- Parameters:
workbench
- whose ownership is to check- Returns:
-
createWorkbench
Create a new wb around an loaded project- Specified by:
createWorkbench
in interfaceWorkbenchManager
-
createWorkbench
Description copied from interface:WorkbenchManager
Create a new workbench around a new empty project- Specified by:
createWorkbench
in interfaceWorkbenchManager
- Returns:
- Throws:
IOException
-
createWorkbench
Description copied from interface:WorkbenchManager
Create a new workbench around the Project of the given id- Specified by:
createWorkbench
in interfaceWorkbenchManager
- Returns:
-
createWorkbench
-
getWorkbenches
Description copied from interface:WorkbenchManager
return the object workbenches- Specified by:
getWorkbenches
in interfaceWorkbenchManager
-