Class UserVisibilityDialog2

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

    public class UserVisibilityDialog2
    extends org.eclipse.jface.dialogs.Dialog
    Dialog for 'user visibility' selection.
    • 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 org.eclipse.swt.widgets.Control createButtonBar​(org.eclipse.swt.widgets.Composite parent)  
      protected void createComponents​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.swt.widgets.Control createContents​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)  
      boolean getCommonValue()  
      protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()  
      Collection<CheckedItemViewModel> getValue()  
      protected boolean isResizable()
      Returns true
      protected void okPressed()  
      • Methods inherited from class org.eclipse.jface.dialogs.Dialog

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

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

      • UserVisibilityDialog2

        public UserVisibilityDialog2​(org.eclipse.swt.widgets.Shell parentShell,
                                     Object context,
                                     IContentProvider contentProvider,
                                     ILabelProvider labelProvider,
                                     boolean isCommon,
                                     String dialogTitle,
                                     String rolesLabel,
                                     String isCommonButtonText,
                                     boolean readonly)
        Creates a new UserVisibilityDialog2.
        Parameters:
        parentShell - it the shell.
        context - is the input for content provider
        contentProvider - is the content provider
        labelProvider - is the label provider
        isCommon - is the 'common visibility' initial value
        DialogTitle - is the dialog title or null for default value.
        RolesLabel - is the roles label text or null for default value.
        IsCommonButtonText - is the isCommon button text or null for default value.
        readonly - is the read-only flag.
    • Method Detail

      • getCommonValue

        public boolean getCommonValue()
        Returns:
        the 'common visibility' value. It is filled after dialog is closed.
      • isResizable

        protected boolean isResizable()
        Returns true
        Overrides:
        isResizable in class org.eclipse.jface.dialogs.Dialog
      • createContents

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

        protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
        Overrides:
        getDialogBoundsSettings 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.Dialog
      • createComponents

        protected void createComponents​(org.eclipse.swt.widgets.Composite parent)
      • okPressed

        protected void okPressed()
        Overrides:
        okPressed in class org.eclipse.jface.dialogs.Dialog