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
Modifier and TypeFieldDescriptionprotected ProjectManager
protected UIToolkit
protected WorkbenchManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Close a workbench and deregister (disconnect) its project.void
abstract void
static void
abstract void
static void
Create a new workbench with a new project.abstract void
exit()
abstract Workbench
Get the last selected workbench by the applicationvoid
init
(ProjectManager pm, UIToolkit uitoolkit, WorkbenchManager wbm) static void
listExamples
(Item item, Object info, Context ctx) abstract void
listExamples
(Object info) static void
listProjects
(Item item, Object info, Context ctx) abstract void
listProjects
(Object info) static void
listTemplates
(Item item, Object info, Context ctx) abstract void
listTemplates
(Object info) static void
listWorkbenches
(Item item, Object info, Context ctx) abstract void
listWorkbenches
(Object info) static void
loadExample
(Item item, Object info, Context ctx) abstract void
loadExample
(Object info) loadExample
(String name, String newName) open
(FilterSource fs, ProjectFactory pf, Map initParams) abstract ProjectWorkbench
open
(FilterSource fs, Map initParams) static void
Create a new workbench and load an project into it.abstract ProjectWorkbench
static void
run
(Application app) void
Performs the actions of this command.static void
selectWorkbench
(Item item, Object info, Context ctx) void
protected abstract void
selectWorkbench
(Object info) protected void
abstract void
stop()
static void
Terminate the application.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.ui.Command
getCommandName
-
Field Details
-
pm
-
ui
-
wbm
-
selected
-
-
Constructor Details
-
UIApplication
public UIApplication()
-
-
Method Details
-
init
-
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. -
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:
IOException
Exception
-
create
- Throws:
Exception
-
create
- Throws:
IOException
Exception
-
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()
-