Package jadex.tools.jcc
Class ControlCenter
- java.lang.Object
-
- jadex.tools.jcc.ControlCenter
-
public class ControlCenter extends java.lang.ObjectThe global control center.
-
-
Field Summary
Fields Modifier and Type Field Description protected CMSUpdateHandlercmshandlerThe CMS update handler shared by all tools.protected ComponentIconCacheiconcacheThe component icon cache shared by all tools.static java.lang.StringJCC_EXIT_ASKAsk for shutdown on exit.static java.lang.StringJCC_EXIT_KEEPNo shutdown on exit.static java.lang.StringJCC_EXIT_SHUTDOWNAuto-shutdown on exit.protected IExternalAccessjccaccessThe jcc component.protected java.lang.StringjccexitShutdown action on exit (ask (default), keep, shutdown).protected booleankilledFlag indicating if exit was initiated.protected PlatformControlCenterpccThe currently displayed platform control center.protected java.util.Map<IComponentIdentifier,PlatformControlCenter>pccsThe platform control centers (cid -> pcc).protected java.lang.String[]plugin_classesThe plugin classes.protected PropertyUpdateHandlerprophandlerThe property handler.protected booleansaveonexitThe save on exit flag.static java.lang.StringSETTINGS_EXTENSIONThe filename extension for GUI settings.protected ControlCenterWindowwindowThe control center window.
-
Constructor Summary
Constructors Constructor Description ControlCenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclosePlatform(PlatformControlCenter pcc)Close a platform control center.voidexit()Informs the window if it should dispose its resources.CMSUpdateHandlergetCMSHandler()Get the cms update handler shared by all tools.ComponentIconCachegetIconCache()Get the component icon cache shared by all tools.IExternalAccessgetJCCAccess()Get the JCC access.PlatformControlCentergetPCC()Get the current platform control center.PropertyUpdateHandlergetPropertyHandler()Get the property update handler shared by all tools.ControlCenterWindowgetWindow()Get the control center window.IFuture<java.lang.Void>init(IExternalAccess jccaccess, IExternalAccess platformaccess, java.lang.String[] plugin_classes, boolean saveonexit)Create a control center.booleanisSaveOnExit()Get the save on exit flag.IFuture<java.lang.Void>loadSettings()Load the settings.IFuture<java.lang.Void>loadSettings(java.io.File file)Load the settings.IFuture<java.lang.Void>saveSettings()Save settings of JCC and all plugins in current project.IFuture<java.lang.Void>saveSettings(java.io.File file)Save settings of JCC and all plugins in current project.voidsetSaveOnExit(boolean saveonexit)Set the save on exit flag.voidshowPlatform(IExternalAccess platformaccess)Add a new platform control center or switch to tab if already exists.IFuture<java.lang.Void>shutdown()Do any required cleanup on exit.
-
-
-
Field Detail
-
SETTINGS_EXTENSION
public static final java.lang.String SETTINGS_EXTENSION
The filename extension for GUI settings.- See Also:
- Constant Field Values
-
JCC_EXIT_SHUTDOWN
public static final java.lang.String JCC_EXIT_SHUTDOWN
Auto-shutdown on exit.- See Also:
- Constant Field Values
-
JCC_EXIT_KEEP
public static final java.lang.String JCC_EXIT_KEEP
No shutdown on exit.- See Also:
- Constant Field Values
-
JCC_EXIT_ASK
public static final java.lang.String JCC_EXIT_ASK
Ask for shutdown on exit.- See Also:
- Constant Field Values
-
jccaccess
protected IExternalAccess jccaccess
The jcc component.
-
plugin_classes
protected java.lang.String[] plugin_classes
The plugin classes.
-
pccs
protected java.util.Map<IComponentIdentifier,PlatformControlCenter> pccs
The platform control centers (cid -> pcc).
-
pcc
protected PlatformControlCenter pcc
The currently displayed platform control center.
-
window
protected ControlCenterWindow window
The control center window.
-
killed
protected boolean killed
Flag indicating if exit was initiated.
-
jccexit
protected java.lang.String jccexit
Shutdown action on exit (ask (default), keep, shutdown).
-
cmshandler
protected CMSUpdateHandler cmshandler
The CMS update handler shared by all tools.
-
prophandler
protected PropertyUpdateHandler prophandler
The property handler.
-
iconcache
protected ComponentIconCache iconcache
The component icon cache shared by all tools.
-
saveonexit
protected boolean saveonexit
The save on exit flag.
-
-
Method Detail
-
init
public IFuture<java.lang.Void> init(IExternalAccess jccaccess, IExternalAccess platformaccess, java.lang.String[] plugin_classes, boolean saveonexit)
Create a control center.
-
loadSettings
public IFuture<java.lang.Void> loadSettings()
Load the settings.
-
loadSettings
public IFuture<java.lang.Void> loadSettings(java.io.File file)
Load the settings.
-
saveSettings
public IFuture<java.lang.Void> saveSettings()
Save settings of JCC and all plugins in current project.
-
saveSettings
public IFuture<java.lang.Void> saveSettings(java.io.File file)
Save settings of JCC and all plugins in current project.
-
exit
public void exit()
Informs the window if it should dispose its resources.
-
shutdown
public IFuture<java.lang.Void> shutdown()
Do any required cleanup on exit.
-
isSaveOnExit
public boolean isSaveOnExit()
Get the save on exit flag.
-
setSaveOnExit
public void setSaveOnExit(boolean saveonexit)
Set the save on exit flag.
-
getCMSHandler
public CMSUpdateHandler getCMSHandler()
Get the cms update handler shared by all tools.
-
getPropertyHandler
public PropertyUpdateHandler getPropertyHandler()
Get the property update handler shared by all tools.
-
getIconCache
public ComponentIconCache getIconCache()
Get the component icon cache shared by all tools.
-
getWindow
public ControlCenterWindow getWindow()
Get the control center window.
-
getJCCAccess
public IExternalAccess getJCCAccess()
Get the JCC access.
-
showPlatform
public void showPlatform(IExternalAccess platformaccess)
Add a new platform control center or switch to tab if already exists.
-
closePlatform
public void closePlatform(PlatformControlCenter pcc)
Close a platform control center.
-
getPCC
public PlatformControlCenter getPCC()
Get the current platform control center.
-
-