Class BaseGuiWidgets

    • Field Detail

      • instanceId

        protected String instanceId
        Every set of widgets (toolbar, composite, menu, ...) gets its own unique ID It will cause a new object to be created per unique ID for the listener or GUI plugins if this plugin wasn't registered yet.
      • guiPluginClassName

        protected String guiPluginClassName
        For convenience, we remember the classname of the GUI plugin that creates and owns these widgets.
      • guiPluginObject

        protected Object guiPluginObject
        The plugin object which is registered
    • Constructor Detail

      • BaseGuiWidgets

        public BaseGuiWidgets​(String instanceId)
    • Method Detail

      • registerGuiPluginObject

        public void registerGuiPluginObject​(Object guiPluginObject)
        Let the GUI plugin system know that there is no need to instantiate new objects for the given class. Instead, this object can be taken. Make sure to call dispose() to prevent a (slow) memory leak. Call this method before creating the widgets themselves.
        Parameters:
        guiPluginObject -
      • addDeRegisterGuiPluginObjectListener

        protected void addDeRegisterGuiPluginObjectListener​(org.eclipse.swt.widgets.Control control)
      • dispose

        public void dispose()
      • getListener

        protected org.eclipse.swt.widgets.Listener getListener​(ClassLoader classLoader,
                                                               String listenerClassName,
                                                               String listenerMethodName)
      • getInstanceId

        public String getInstanceId()
        Gets instanceId
        Returns:
        value of instanceId
      • setInstanceId

        public void setInstanceId​(String instanceId)
        Parameters:
        instanceId - The instanceId to set
      • getGuiPluginClassName

        public String getGuiPluginClassName()
        Gets guiPluginClassName
        Returns:
        value of guiPluginClassName
      • setGuiPluginClassName

        public void setGuiPluginClassName​(String guiPluginClassName)
        Sets guiPluginClassName
        Parameters:
        guiPluginClassName - value of guiPluginClassName
      • getGuiPluginObject

        public Object getGuiPluginObject()
        Gets guiPluginObject
        Returns:
        value of guiPluginObject
      • setGuiPluginObject

        public void setGuiPluginObject​(Object guiPluginObject)
        Sets guiPluginObject
        Parameters:
        guiPluginObject - value of guiPluginObject