Class ControlCenter


  • public class ControlCenter
    extends java.lang.Object
    The global control center.
    • 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
      • plugin_classes

        protected java.lang.String[] plugin_classes
        The plugin classes.
      • 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.
      • iconcache

        protected ComponentIconCache iconcache
        The component icon cache shared by all tools.
      • saveonexit

        protected boolean saveonexit
        The save on exit flag.
    • Constructor Detail

      • ControlCenter

        public ControlCenter()
    • 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.
      • 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.