java.lang.Object
de.grogra.pf.registry.Plugin
de.grogra.pf.ui.UIApplication
- All Implemented Interfaces:
RegistryContext,Command
- Direct Known Subclasses:
APIApplication,CLIApplication,IMP
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProjectManagerprotected UIToolkitprotected WorkbenchManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClose a workbench and deregister (disconnect) its project.voidabstract voidstatic voidabstract voidstatic voidCreate a new workbench with a new project.abstract voidexit()abstract WorkbenchGet the last selected workbench by the applicationvoidinit(ProjectManager pm, UIToolkit uitoolkit, WorkbenchManager wbm) static voidlistExamples(Item item, Object info, Context ctx) abstract voidlistExamples(Object info) static voidlistProjects(Item item, Object info, Context ctx) abstract voidlistProjects(Object info) static voidlistTemplates(Item item, Object info, Context ctx) abstract voidlistTemplates(Object info) static voidlistWorkbenches(Item item, Object info, Context ctx) abstract voidlistWorkbenches(Object info) static voidloadExample(Item item, Object info, Context ctx) abstract voidloadExample(Object info) loadExample(String name, String newName) open(FilterSource fs, ProjectFactory pf, Map initParams) abstract ProjectWorkbenchopen(FilterSource fs, Map initParams) static voidCreate a new workbench and load an project into it.abstract ProjectWorkbenchstatic voidrun(Application app) voidPerforms the actions of this command.static voidselectWorkbench(Item item, Object info, Context ctx) voidprotected abstract voidselectWorkbench(Object info) protected voidabstract voidstop()static voidTerminate the application.Methods inherited from class de.grogra.pf.registry.Plugin
checkConfigure, getI18NBundle, getPluginDescriptor, getRegistry, initialize, shutdown, startupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.pf.ui.Command
getCommandName
-
Field Details
-
pm
-
ui
-
wbm
-
selected
-
-
Constructor Details
-
UIApplication
public UIApplication()
-
-
Method Details
-
init
-
run
-
run
Description copied from interface:CommandPerforms the actions of this command. This method is invoked by theJobManagerafter the command has been submitted to the job manager by one ofexecute,runAt, orrunLater-methods. The argumentsinfoandcontextare the arguments which have been provided as arguments to theJobManager-methods. -
getToolkit
-
getProjectManager
-
getWorkbenchManager
-
getMainWorkbench
-
setMainWorkbench
-
getCurrentWorkbench
Get the last selected workbench by the application- Returns:
- The current workbench for this application
-
open
Create a new workbench and load an project into it.- Throws:
Exception
-
open
- Throws:
Exception
-
open
-
open
- Throws:
IOException
-
close
Close a workbench and deregister (disconnect) its project. -
close
-
close
- Throws:
IOException
-
createWB
Create a new workbench with a new project.- Throws:
IOExceptionException
-
create
- Throws:
Exception
-
create
- Throws:
IOExceptionException
-
create
- Throws:
IOException
-
loadExample
- Throws:
Exception
-
loadExample
- Throws:
Exception
-
loadExample
-
listExamples
-
listExamples
-
listTemplates
-
listTemplates
-
selectWorkbench
-
selectWorkbench
-
selectWorkbench
- Throws:
NullPointerException
-
listWorkbenches
-
listWorkbenches
-
listProjects
-
listProjects
-
stop
Terminate the application. It closes all opened workbenches managed by its wbm. Close workbenches do not necessarily close the projects. -
stop
public abstract void stop() -
exit
public abstract void exit()
-