Class AbstractUIProvider

    • Constructor Detail

      • AbstractUIProvider

        public AbstractUIProvider()
    • Method Detail

      • createLabelComposite

        protected abstract void createLabelComposite​(Composite parent)
        Creates the elements of the label area.
        Parameters:
        parent - the parent Composite
      • createAndInitList

        protected abstract void createAndInitList​(Composite parent)
        Creates and initializes the ListViewer.
        Parameters:
        parent - the parent Composite
      • updateUI

        public abstract void updateUI()
        Description copied from interface: UIProvider
        Updates the UI.
        Specified by:
        updateUI in interface UIProvider
      • clearUI

        public void clearUI()
        Description copied from interface: UIProvider
        Clears and disables all UI elements.
        Specified by:
        clearUI in interface UIProvider
      • addButtonSelected

        protected abstract void addButtonSelected()
        This method is called when the add button is selected.
      • removeButtonSelected

        protected abstract void removeButtonSelected()
        This method is called when the remove button is selected.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from interface: UIProvider
        Sets the enabled state of the UI to the given state.
        Specified by:
        setEnabled in interface UIProvider
        Parameters:
        enabled - the new enabled state
      • setFocus

        public void setFocus()
        Description copied from interface: UIProvider
        Sets the focus to an UI element of the provided UI.
        Specified by:
        setFocus in interface UIProvider
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Disposes the Disposable. Can be used to dispose SWT objects and to remove listeners.
        Specified by:
        dispose in interface Disposable
      • getModelExtension

        protected abstract String getModelExtension()
        Returns a string representation of the extension of model files that can be modified by the elements in the provided UI
        Returns:
        the extension of model files that can be modified by the provided UI