Class SetFilterDialog

  • All Implemented Interfaces:
    org.eclipse.jface.window.IShellProvider

    public class SetFilterDialog
    extends org.eclipse.ui.dialogs.SelectionDialog
    Set filters dialog.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

        org.eclipse.jface.window.Window.IExceptionHandler
    • Field Summary

      • Fields inherited from class org.eclipse.jface.dialogs.Dialog

        blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
      • Fields inherited from class org.eclipse.jface.window.Window

        CANCEL, OK, resizeHasOccurred
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void buttonPressed​(int buttonId)  
      boolean close()  
      protected org.eclipse.swt.widgets.Control createButtonBar​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()  
      Set<org.eclipse.emf.ecore.EObject> getSelectedObjects()
      Gets selected objects.
      Set<Role> getSelectedRoles()
      Gets selected roles.
      • Methods inherited from class org.eclipse.ui.dialogs.SelectionDialog

        configureShell, createButtonsForButtonBar, createMessageArea, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitle
      • Methods inherited from class org.eclipse.jface.dialogs.TrayDialog

        closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
      • Methods inherited from class org.eclipse.jface.dialogs.Dialog

        applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
      • Methods inherited from class org.eclipse.jface.window.Window

        canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
    • Constructor Detail

      • SetFilterDialog

        public SetFilterDialog​(org.eclipse.swt.widgets.Shell parentShell,
                               RightsEditorTypes editorType,
                               Configuration configuration,
                               Set<org.eclipse.emf.ecore.EObject> selectedObjects,
                               IEObjectTrie contentObjectsTrie,
                               Set<Role> selectedRoles,
                               Collection<Role> contentRoles,
                               ITreeContentProvider contentProvider,
                               IResourceLookup resourceLookup,
                               org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider,
                               IModelObjectTreeSearchEngine searchEngine,
                               IBmRightsIndexProvider bmRightsProvider,
                               IBmEmfIndexManager bmEmfIndexManager,
                               org.eclipse.ui.navigator.INavigatorContentService contentService,
                               IIndexSlicePredicateService slicePredicateService,
                               IFilterBySubsystemsManager filterBySubsystemsManager,
                               IDtProjectManager dtProjectManager)
        Constructor.
        Parameters:
        parentShell - the parent shell, can not be null
        editorType - the editor type, can not be null
        configuration - the configuration, can not be null
        selectedObjects - the selected objects, may be null if editorType == MD_OBJECT_EDITOR
        contentObjectsTrie - the content objects trie, may be null if editorType == MD_OBJECT_EDITOR
        selectedRoles - the selected roles, may be null if editorType == ROLE_EDITOR
        contentRoles - the content roles, may be null if editorType == ROLE_EDITOR
        contentProvider - the project content provider, can not be null
        resourceLookup - the resource lookup, can not be null
        qualifiedNameProvider - the qualified name provider, can not be null
        searchEngine - the md object tree search engine, can not be null
        bmRightsProvider - the Bm rights index provider, can not be null
        bmEmfIndexManager - the BM emf index manager, can not be null
        contentService - actual INavigatorContentService, can not be null
        slicePredicateService - the slice predicate service, can not be null
        filterBySubsystemsManager - the filter by subsystems manager, can not be null
        dtProjectManager - the DT project manager, cannot be null
    • Method Detail

      • getSelectedObjects

        public Set<org.eclipse.emf.ecore.EObject> getSelectedObjects()
        Gets selected objects.
        Returns:
        the selected objects or empty set, if no object was selected, never null
      • getSelectedRoles

        public Set<Role> getSelectedRoles()
        Gets selected roles.
        Returns:
        the selected roles or empty set, if no role was selected, never null
      • close

        public boolean close()
        Overrides:
        close in class org.eclipse.jface.dialogs.Dialog
      • getDialogBoundsSettings

        protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
        Overrides:
        getDialogBoundsSettings in class org.eclipse.ui.dialogs.SelectionDialog
      • buttonPressed

        protected void buttonPressed​(int buttonId)
        Overrides:
        buttonPressed in class org.eclipse.jface.dialogs.Dialog
      • createDialogArea

        protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)
        Overrides:
        createDialogArea in class org.eclipse.jface.dialogs.Dialog
      • createButtonBar

        protected org.eclipse.swt.widgets.Control createButtonBar​(org.eclipse.swt.widgets.Composite parent)
        Overrides:
        createButtonBar in class org.eclipse.jface.dialogs.TrayDialog