Class AttributeValuesPage

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addAttribute​(Attribute attribute)
      Adds an attribute to the configuration (via editing).
      (package private) void clear()
      Clears all value assignments.
      void close()
      Optional method for specifying an on-closed action.
      void configurationRefreshed​(Configuration config)
      Notification that the whole configuration was refreshed, e.g.
      (package private) void convert​(boolean group)
      Converts values to a group or non-group attribute values configuration.
      int getConfigurationEntriesSize()
      Returns the number of configuration entries.
      int getDecisionCount()
      Returns the number of configured decisions.
      boolean getGroupSelection()
      Returns the group selection state.
      static java.lang.String getKey​(Attribute attribute)
      Returns an internal key for retrieving duplicates.
      java.lang.String getPageText()
      Returns the text label for the editor page.
      static java.lang.String getQualifiedAppendix​(Attribute attribute)
      Returns the display appendix for the qualified name.
      void itemChanged​(Configuration config, IDecisionVariable changedVariable, Value oldValue)
      Notification that a DecisionVariable changed inside the Configuration.
      protected void pageActivated()
      This method will be called, when this editor page becomes active.
      void propertyChanged​(java.lang.Object source, int propId)  
      void refresh()
      Refreshes the shown content of the current project.
      private void refreshConfigEditor()
      Refreshes the configuration editor.
      (package private) void removeSelected()
      Remove the selected value assignment.
      void stateChanged​(Configuration config, IDecisionVariable changedVariable)
      Notification that the state of a DecisionVariable has been changed inside the Configuration.
      void updateTriggered()
      Called during an update.
      • Methods inherited from class org.eclipse.swt.widgets.Composite

        changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList
      • Methods inherited from class org.eclipse.swt.widgets.Scrollable

        computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
      • Methods inherited from class org.eclipse.swt.widgets.Control

        addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
      • Methods inherited from class org.eclipse.swt.widgets.Widget

        addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.swt.graphics.Drawable

        isAutoScalable
    • Constructor Detail

      • AttributeValuesPage

        public AttributeValuesPage​(ProductLineProject plp,
                                   org.eclipse.swt.widgets.Composite parent)
        Creates a new attribute values page.
        Parameters:
        plp - The ProductLineProject edited in this editor page.
        parent - The parent, holding this editor page
    • Method Detail

      • getKey

        public static java.lang.String getKey​(Attribute attribute)
        Returns an internal key for retrieving duplicates.
        Parameters:
        attribute - the attribute to return the key for
        Returns:
        the key
      • getQualifiedAppendix

        public static java.lang.String getQualifiedAppendix​(Attribute attribute)
        Returns the display appendix for the qualified name.
        Parameters:
        attribute - the attribute to return the appendix for
        Returns:
        the appendix
      • refresh

        public void refresh()
        Description copied from interface: IEASyEditorPage
        Refreshes the shown content of the current project. This method should be calles if the contant inside the editor has been changed and should also affect other editor parts.
        Specified by:
        refresh in interface IEASyEditorPage
      • getPageText

        public final java.lang.String getPageText()
        Description copied from interface: IEASyEditorPage
        Returns the text label for the editor page. This is for creating labels/tabs in an editor.
        Specified by:
        getPageText in interface IEASyEditorPage
        Returns:
        The text label for the editor page (must not be null).
      • propertyChanged

        public void propertyChanged​(java.lang.Object source,
                                    int propId)
        Specified by:
        propertyChanged in interface org.eclipse.ui.IPropertyListener
      • getConfigurationEntriesSize

        public int getConfigurationEntriesSize()
        Returns the number of configuration entries.
        Returns:
        the number of configuration entries
      • addAttribute

        void addAttribute​(Attribute attribute)
        Adds an attribute to the configuration (via editing).
        Parameters:
        attribute - the new attribute
      • configurationRefreshed

        public void configurationRefreshed​(Configuration config)
        Notification that the whole configuration was refreshed, e.g. because the project was reparsed.
        Specified by:
        configurationRefreshed in interface IConfigurationChangeListener
        Parameters:
        config - The configuration which was refreshed.
      • clear

        void clear()
        Clears all value assignments.
      • removeSelected

        void removeSelected()
        Remove the selected value assignment.
      • convert

        void convert​(boolean group)
        Converts values to a group or non-group attribute values configuration. Converting to a grouped configuration may imply data loss.
        Parameters:
        group - convert to a group or non-group configuration
      • refreshConfigEditor

        private void refreshConfigEditor()
        Refreshes the configuration editor.
      • getDecisionCount

        public int getDecisionCount()
        Returns the number of configured decisions.
        Returns:
        the number of decisions
      • getGroupSelection

        public boolean getGroupSelection()
        Returns the group selection state.
        Returns:
        the group selection state