Package jadex.tools.jcc
Class ControlCenter
- java.lang.Object
- 
- jadex.tools.jcc.ControlCenter
 
- 
 public class ControlCenter extends java.lang.ObjectThe global control center.
- 
- 
Field SummaryFields 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 SummaryConstructors Constructor Description ControlCenter()
 - 
Method SummaryAll 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_EXTENSIONpublic static final java.lang.String SETTINGS_EXTENSION The filename extension for GUI settings.- See Also:
- Constant Field Values
 
 - 
JCC_EXIT_SHUTDOWNpublic static final java.lang.String JCC_EXIT_SHUTDOWN Auto-shutdown on exit.- See Also:
- Constant Field Values
 
 - 
JCC_EXIT_KEEPpublic static final java.lang.String JCC_EXIT_KEEP No shutdown on exit.- See Also:
- Constant Field Values
 
 - 
JCC_EXIT_ASKpublic static final java.lang.String JCC_EXIT_ASK Ask for shutdown on exit.- See Also:
- Constant Field Values
 
 - 
jccaccessprotected IExternalAccess jccaccess The jcc component.
 - 
plugin_classesprotected java.lang.String[] plugin_classes The plugin classes.
 - 
pccsprotected java.util.Map<IComponentIdentifier,PlatformControlCenter> pccs The platform control centers (cid -> pcc).
 - 
pccprotected PlatformControlCenter pcc The currently displayed platform control center.
 - 
windowprotected ControlCenterWindow window The control center window.
 - 
killedprotected boolean killed Flag indicating if exit was initiated.
 - 
jccexitprotected java.lang.String jccexit Shutdown action on exit (ask (default), keep, shutdown).
 - 
cmshandlerprotected CMSUpdateHandler cmshandler The CMS update handler shared by all tools.
 - 
prophandlerprotected PropertyUpdateHandler prophandler The property handler.
 - 
iconcacheprotected ComponentIconCache iconcache The component icon cache shared by all tools.
 - 
saveonexitprotected boolean saveonexit The save on exit flag.
 
- 
 - 
Method Detail- 
initpublic IFuture<java.lang.Void> init(IExternalAccess jccaccess, IExternalAccess platformaccess, java.lang.String[] plugin_classes, boolean saveonexit) Create a control center.
 - 
loadSettingspublic IFuture<java.lang.Void> loadSettings() Load the settings.
 - 
loadSettingspublic IFuture<java.lang.Void> loadSettings(java.io.File file) Load the settings.
 - 
saveSettingspublic IFuture<java.lang.Void> saveSettings() Save settings of JCC and all plugins in current project.
 - 
saveSettingspublic IFuture<java.lang.Void> saveSettings(java.io.File file) Save settings of JCC and all plugins in current project.
 - 
exitpublic void exit() Informs the window if it should dispose its resources.
 - 
shutdownpublic IFuture<java.lang.Void> shutdown() Do any required cleanup on exit.
 - 
isSaveOnExitpublic boolean isSaveOnExit() Get the save on exit flag.
 - 
setSaveOnExitpublic void setSaveOnExit(boolean saveonexit) Set the save on exit flag.
 - 
getCMSHandlerpublic CMSUpdateHandler getCMSHandler() Get the cms update handler shared by all tools.
 - 
getPropertyHandlerpublic PropertyUpdateHandler getPropertyHandler() Get the property update handler shared by all tools.
 - 
getIconCachepublic ComponentIconCache getIconCache() Get the component icon cache shared by all tools.
 - 
getWindowpublic ControlCenterWindow getWindow() Get the control center window.
 - 
getJCCAccesspublic IExternalAccess getJCCAccess() Get the JCC access.
 - 
showPlatformpublic void showPlatform(IExternalAccess platformaccess) Add a new platform control center or switch to tab if already exists.
 - 
closePlatformpublic void closePlatform(PlatformControlCenter pcc) Close a platform control center.
 - 
getPCCpublic PlatformControlCenter getPCC() Get the current platform control center.
 
- 
 
-