java.lang.Object
de.grogra.pf.registry.Plugin
de.grogra.pf.ui.UIApplication
de.grogra.api.APIApplication
- All Implemented Interfaces:
RegistryContext
,Command
-
Field Summary
Fields inherited from class de.grogra.pf.ui.UIApplication
pm, selected, ui, wbm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
exit()
Returns a name which can be used in the graphical user interface to represent this command.Get the last selected workbench by the applicationvoid
init
(ProjectManager pm, UIToolkit uitoolkit, WorkbenchManager wbm, int port) void
listExamples
(Object info) void
listProjects
(Object info) void
listTemplates
(Object info) void
listWorkbenches
(Object info) void
loadExample
(Object info) loadExample
(String name, String newName) open
(FilterSource fs, Map initParams) static void
run
(Application app) void
Performs the actions of this command.void
selectWorkbench
(Object info) void
stop()
Methods inherited from class de.grogra.pf.ui.UIApplication
close, close, create, create, createWB, getMainWorkbench, getProjectManager, getToolkit, getWorkbenchManager, init, listExamples, listProjects, listTemplates, listWorkbenches, loadExample, open, open, selectWorkbench, selectWorkbench, setMainWorkbench, stop
Methods inherited from class de.grogra.pf.registry.Plugin
checkConfigure, getI18NBundle, getPluginDescriptor, getRegistry, initialize, shutdown, startup
-
Constructor Details
-
APIApplication
public APIApplication()
-
-
Method Details
-
getInstance
-
run
-
run
Description copied from interface:Command
Performs the actions of this command. This method is invoked by theJobManager
after the command has been submitted to the job manager by one ofexecute
,runAt
, orrunLater
-methods. The argumentsinfo
andcontext
are the arguments which have been provided as arguments to theJobManager
-methods.- Specified by:
run
in interfaceCommand
- Overrides:
run
in classUIApplication
- Parameters:
arg
- an argumentcontext
- a context
-
init
public void init(ProjectManager pm, UIToolkit uitoolkit, WorkbenchManager wbm, int port) throws IOException - Throws:
IOException
-
getCommandName
Description copied from interface:Command
Returns a name which can be used in the graphical user interface to represent this command.- Returns:
- this commands's name
-
getCurrentWorkbench
Description copied from class:UIApplication
Get the last selected workbench by the application- Specified by:
getCurrentWorkbench
in classUIApplication
- Returns:
- The current workbench for this application
-
open
- Specified by:
open
in classUIApplication
- Throws:
Exception
-
open
- Specified by:
open
in classUIApplication
-
close
- Specified by:
close
in classUIApplication
-
create
- Specified by:
create
in classUIApplication
- Throws:
Exception
-
loadExample
- Specified by:
loadExample
in classUIApplication
- Throws:
Exception
-
loadExample
- Overrides:
loadExample
in classUIApplication
-
listExamples
- Specified by:
listExamples
in classUIApplication
-
listTemplates
- Specified by:
listTemplates
in classUIApplication
-
selectWorkbench
- Specified by:
selectWorkbench
in classUIApplication
-
listWorkbenches
- Specified by:
listWorkbenches
in classUIApplication
-
listProjects
- Specified by:
listProjects
in classUIApplication
-
stop
public void stop()- Specified by:
stop
in classUIApplication
-
exit
public void exit()- Specified by:
exit
in classUIApplication
-