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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidexit()Returns a name which can be used in the graphical user interface to represent this command.Get the last selected workbench by the applicationvoidinit(ProjectManager pm, UIToolkit uitoolkit, WorkbenchManager wbm, int port) voidlistExamples(Object info) voidlistProjects(Object info) voidlistTemplates(Object info) voidlistWorkbenches(Object info) voidloadExample(Object info) loadExample(String name, String newName) open(FilterSource fs, Map initParams) static voidrun(Application app) voidPerforms the actions of this command.voidselectWorkbench(Object info) voidstop()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, stopMethods 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: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.- Specified by:
runin interfaceCommand- Overrides:
runin 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:CommandReturns 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:UIApplicationGet the last selected workbench by the application- Specified by:
getCurrentWorkbenchin classUIApplication- Returns:
- The current workbench for this application
-
open
- Specified by:
openin classUIApplication- Throws:
Exception
-
open
- Specified by:
openin classUIApplication
-
close
- Specified by:
closein classUIApplication
-
create
- Specified by:
createin classUIApplication- Throws:
Exception
-
loadExample
- Specified by:
loadExamplein classUIApplication- Throws:
Exception
-
loadExample
- Overrides:
loadExamplein classUIApplication
-
listExamples
- Specified by:
listExamplesin classUIApplication
-
listTemplates
- Specified by:
listTemplatesin classUIApplication
-
selectWorkbench
- Specified by:
selectWorkbenchin classUIApplication
-
listWorkbenches
- Specified by:
listWorkbenchesin classUIApplication
-
listProjects
- Specified by:
listProjectsin classUIApplication
-
stop
public void stop()- Specified by:
stopin classUIApplication
-
exit
public void exit()- Specified by:
exitin classUIApplication
-