Class SelectEObjectDialog

All Implemented Interfaces:
IShellProvider

public class SelectEObjectDialog extends TitleAreaDialog
  • Constructor Details

  • Method Details

    • configureShell

      protected void configureShell(Shell newShell)
      Overrides:
      configureShell in class Window
    • createDialogArea

      protected Control createDialogArea(Composite parent)
      Overrides:
      createDialogArea in class TitleAreaDialog
    • createButtonsForButtonBar

      protected void createButtonsForButtonBar(Composite parent)
      Overrides:
      createButtonsForButtonBar in class Dialog
    • cancelPressed

      protected void cancelPressed()
      Overrides:
      cancelPressed in class Dialog
    • open

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

      protected Point getInitialSize()
      Return the initial size of the dialog
      Overrides:
      getInitialSize in class TitleAreaDialog
    • 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)