Class ConfigurationHeaderMenu

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildScriptChanged()
      This method is called, if the PLPInfo.getBuildScript() was changed.
      void configurationPulled()
      This method is called, if the configuration is pulled.
      private void createAbortInstantiationButton()
      Creates the transform button.
      private void createButtons()
      Creates the two buttons.
      private void createFreezeButton()
      Tests whether the model is valid and freezes all not frozen variables.
      private void createInstantiateButton()
      Creates the transform button.
      private void createPropagateButton()
      Creates Propagation button.
      private void createReasoningProgressObserver​(ReasoningOperation operation, IReasonerListener listener)
      Creates a reasoning progress observer based on AbstractHeaderMenu.getProductLineProject().
      private void createUndoButton()
      Creates revert button.
      private void createValidateButton()
      Creates validation button.
      private void displayWarnings​(ReasoningResult result)
      Method for preparing a RasonerResult for showing a warnings dialog.
      void dispose()  
      void projectClosed()
      This method is called, if the related PLPInfo is closed.
      void revalidateButtons()
      Enables or disables the buttons, depending on whether a the related action is possible.
      private void setInstantiationListeners()
      Creates a listener for the instantiation and abort button and add them the buttons.
      private void setValidateListener()
      Creates a listener for the validation button and add it to the button.
      void vilExecutionAborted​(PLPInfo plp, VilException exc)
      VIL execution (instantiation) was aborted through an error.
      void vilExecutionFinished​(PLPInfo plp, boolean instantiationSuccessfull)
      VIL execution (instantiation) was finished.
      • 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, setFocus, 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
    • Field Detail

      • IMG_INSTANTIATE

        private static final org.eclipse.swt.graphics.Image IMG_INSTANTIATE
      • IMG_VALIDATE

        private static final org.eclipse.swt.graphics.Image IMG_VALIDATE
      • IMG_FREEZE

        private static final org.eclipse.swt.graphics.Image IMG_FREEZE
      • IMG_UNDO

        private static final org.eclipse.swt.graphics.Image IMG_UNDO
      • IMG_ABORT

        private static final org.eclipse.swt.graphics.Image IMG_ABORT
      • validateProductButton

        private org.eclipse.swt.widgets.Button validateProductButton
      • undoButton

        private org.eclipse.swt.widgets.Button undoButton
      • btnInstantiate

        private org.eclipse.swt.widgets.Button btnInstantiate
      • btnFreezeAll

        private org.eclipse.swt.widgets.Button btnFreezeAll
      • btnAbortInstantiation

        private org.eclipse.swt.widgets.Button btnAbortInstantiation
      • btnPropagate

        private org.eclipse.swt.widgets.Button btnPropagate
        Created for demonstrating only. Please remove this after Dry-Run-Review.
    • Constructor Detail

      • ConfigurationHeaderMenu

        public ConfigurationHeaderMenu​(org.eclipse.swt.widgets.Composite parent,
                                       ProductLineProject plp,
                                       AbstractEASyEditorPage parentPage)
        Sole constructor for this class.
        Parameters:
        parent - the parent control (must not be null).
        plp - Current configured project holding the configuration (must not be null).
        parentPage - The page bearing this menu item (must not be null).
    • Method Detail

      • createButtons

        private void createButtons()
        Creates the two buttons.
      • createPropagateButton

        private void createPropagateButton()
        Creates Propagation button. TODO: Remove this button after Dry-Run-Review.
      • createFreezeButton

        private void createFreezeButton()
        Tests whether the model is valid and freezes all not frozen variables.
      • createReasoningProgressObserver

        private void createReasoningProgressObserver​(ReasoningOperation operation,
                                                     IReasonerListener listener)
        Creates a reasoning progress observer based on AbstractHeaderMenu.getProductLineProject().
        Parameters:
        operation - the desired reasoning operation
        listener - A listener which will be called after the reasoning has been finished. Can be null, if no action shall be executed after the reasoning is finished.
      • createUndoButton

        private void createUndoButton()
        Creates revert button.
      • createValidateButton

        private void createValidateButton()
        Creates validation button.
      • setValidateListener

        private void setValidateListener()
        Creates a listener for the validation button and add it to the button.
      • createInstantiateButton

        private void createInstantiateButton()
        Creates the transform button.
      • createAbortInstantiationButton

        private void createAbortInstantiationButton()
        Creates the transform button.
      • setInstantiationListeners

        private void setInstantiationListeners()
        Creates a listener for the instantiation and abort button and add them the buttons.
      • displayWarnings

        private void displayWarnings​(ReasoningResult result)
        Method for preparing a RasonerResult for showing a warnings dialog. It filters only warnings out of the RasonerResult and creates a dialog which displays the warnings.
        Parameters:
        result - The result of an reasoning step, may containing warnings.
      • revalidateButtons

        public void revalidateButtons()
        Description copied from class: AbstractHeaderMenu
        Enables or disables the buttons, depending on whether a the related action is possible. This check should be performed whenever the page becomes activated.
        Specified by:
        revalidateButtons in class AbstractHeaderMenu
      • dispose

        public void dispose()
        Overrides:
        dispose in class org.eclipse.swt.widgets.Widget
      • vilExecutionFinished

        public void vilExecutionFinished​(PLPInfo plp,
                                         boolean instantiationSuccessfull)
        Description copied from interface: IVilExecutionListener
        VIL execution (instantiation) was finished. This is usually the case if script execution reached the end of the script, but may also be the case if the user aborted the instantiation.
        Specified by:
        vilExecutionFinished in interface IVilExecutionListener
        Parameters:
        plp - The PLPInfo, which was be instantiated
        instantiationSuccessfull - trueinstantiation finished successfully, false instantiation was aborted, e.g., by the user.