Class SelectEObjectDialog

    • Method Detail

      • open

        public int open()
        Overrides:
        open in class Window
      • enableToolBar

        public void enableToolBar​(Boolean addEnabled,
                                  Boolean deleteEnabled,
                                  Boolean editedEnabled)
        Activated an action border with that actions: Insert, an editing, deletion.
        Parameters:
        addEnabled - - the new enabled state of insert action deleteEnabled - the new enabled state of delete actio editedEnabled - the new enabled state of edited action If a Action is activated, one must set additionally a SelectionListener
        See Also:
        de.uka.ipd.sdq.dialogs#setAddSelectionListener(SelectionListener)
      • setAddSelectionListener

        protected void setAddSelectionListener​(SelectionListener listener)
      • setDeleteSelectionListener

        protected void setDeleteSelectionListener​(SelectionListener listener)
      • setEditeSelectionListener

        protected void setEditeSelectionListener​(SelectionListener listener)
      • setProvidedService

        public void setProvidedService​(Class<?> providedService)
        The function makes possible for validation a selected type element in in the dialogue. If provided service is set, OK button activated only if selected element agrees with entered type. The function must be called forwards open() function!
        Parameters:
        providedService - - return type of dialog
      • getTreeViewer

        public TreeViewer getTreeViewer()
      • getResult

        public EObject getResult()
      • getViewerRootElement

        public Object getViewerRootElement()
        The method supplies the main knots of, in this dialogue the represented, tree.
        Returns:
        the viewer root element
      • getRootOfResult

        public EObject getRootOfResult()
      • setViewerLabelProvider

        public void setViewerLabelProvider​(IBaseLabelProvider labelProvider)
      • setViewerContentProvider

        public void setViewerContentProvider​(IContentProvider provider)