Package jadex.tools.jcc
Class ControlCenter
- java.lang.Object
-
- jadex.tools.jcc.ControlCenter
-
public class ControlCenter extends java.lang.Object
The global control center.
-
-
Field Summary
Fields Modifier and Type Field Description protected CMSUpdateHandler
cmshandler
The CMS update handler shared by all tools.protected ComponentIconCache
iconcache
The component icon cache shared by all tools.static java.lang.String
JCC_EXIT_ASK
Ask for shutdown on exit.static java.lang.String
JCC_EXIT_KEEP
No shutdown on exit.static java.lang.String
JCC_EXIT_SHUTDOWN
Auto-shutdown on exit.protected IExternalAccess
jccaccess
The jcc component.protected java.lang.String
jccexit
Shutdown action on exit (ask (default), keep, shutdown).protected boolean
killed
Flag indicating if exit was initiated.protected PlatformControlCenter
pcc
The currently displayed platform control center.protected java.util.Map<IComponentIdentifier,PlatformControlCenter>
pccs
The platform control centers (cid -> pcc).protected java.lang.String[]
plugin_classes
The plugin classes.protected PropertyUpdateHandler
prophandler
The property handler.protected boolean
saveonexit
The save on exit flag.static java.lang.String
SETTINGS_EXTENSION
The filename extension for GUI settings.protected ControlCenterWindow
window
The control center window.
-
Constructor Summary
Constructors Constructor Description ControlCenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closePlatform(PlatformControlCenter pcc)
Close a platform control center.void
exit()
Informs the window if it should dispose its resources.CMSUpdateHandler
getCMSHandler()
Get the cms update handler shared by all tools.ComponentIconCache
getIconCache()
Get the component icon cache shared by all tools.IExternalAccess
getJCCAccess()
Get the JCC access.PlatformControlCenter
getPCC()
Get the current platform control center.PropertyUpdateHandler
getPropertyHandler()
Get the property update handler shared by all tools.ControlCenterWindow
getWindow()
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.boolean
isSaveOnExit()
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.void
setSaveOnExit(boolean saveonexit)
Set the save on exit flag.void
showPlatform(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.
-
-