Class PictureDialog

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

    public class PictureDialog
    extends org.eclipse.jface.dialogs.TitleAreaDialog
    Dialog for choosing and editing picture values in Form, Command and Moxel Spreadsheet
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void buttonPressed​(int buttonId)  
      boolean close()
      Saves state and closes the window.
      protected void configureShell​(org.eclipse.swt.widgets.Shell newShell)  
      protected void createButtonsForButtonBar​(org.eclipse.swt.widgets.Composite parent)
      Creates "Clear" button in button bar and invoke super-implementation.
      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)  
      protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
      Returns IDialogSettings instances for saving dialog size.
      ISelection getSelection()  
      Point getTransparentPoint()  
      protected boolean isResizable()  
      • Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog

        getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
      • Methods inherited from class org.eclipse.jface.dialogs.TrayDialog

        closeTray, createButtonBar, 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, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, 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
    • Field Detail

      • WINDOW_NAME

        public static final String WINDOW_NAME
      • FROMLIBRARY_TAB_TITLE

        public static final String FROMLIBRARY_TAB_TITLE
      • FROMFILE_TAB_TITLE

        public static final String FROMFILE_TAB_TITLE
      • FROMCOLLECTION_TAB_TITLE

        public static final String FROMCOLLECTION_TAB_TITLE
      • FROMCONFIG_TAB_TITLE

        public static final String FROMCONFIG_TAB_TITLE
      • STANDART_TAB_TITLE

        public static final String STANDART_TAB_TITLE
      • CLEARBUTTON_NAME

        public static final String CLEARBUTTON_NAME
      • SAVEBUTTON_NAME

        public static final String SAVEBUTTON_NAME
      • OKBUTTON_NAME

        public static final String OKBUTTON_NAME
      • CANCELBUTTON_NAME

        public static final String CANCELBUTTON_NAME
      • SEARCHTEXT_MESSAGE

        public static final String SEARCHTEXT_MESSAGE
      • OPENFILEBUT_NAME

        public static final String OPENFILEBUT_NAME
      • TRANSPARENCYBUT_NAME

        public static final String TRANSPARENCYBUT_NAME
      • SETTRANSPARENCYBUT_NAME

        public static final String SETTRANSPARENCYBUT_NAME
      • CLEARTRANSPARENCYBUT_NAME

        public static final String CLEARTRANSPARENCYBUT_NAME
      • WARNING_FOR_COMMONPICTURE

        public static final String WARNING_FOR_COMMONPICTURE
      • WARNING_FOR_FILELIST

        public static final String WARNING_FOR_FILELIST
      • MESSAGE_FAILED_FILE_SAVE

        public static final String MESSAGE_FAILED_FILE_SAVE
      • MESSAGE_NOT_DISPLAY_FILE

        public static final String MESSAGE_NOT_DISPLAY_FILE
      • MESSAGE_ERROR_OPEN_FILE

        public static final String MESSAGE_ERROR_OPEN_FILE
    • Constructor Detail

      • PictureDialog

        public PictureDialog​(org.eclipse.swt.widgets.Shell parentShell,
                             IV8Project v8project,
                             Object currentPicture,
                             boolean isFull,
                             CellLabelProvider platformPictureLabelProvider,
                             IContentProvider platformPictureContentProvider,
                             boolean editable)
        Creates a new instance without common picture tab.
        Parameters:
        parentShell - the parent shell, cannot be null
        v8project - the V8 project, cannot be null
        currentPicture - the current picture, may be null
        isFull - determines whether to show "from file" tab
        platformPictureLabelProvider - the platform picture label provider, cannot be null
        platformPictureContentProvider - the platform picture content provider, cannot be null
        editable - the editable state, true if this model is editable, false otherwise
      • PictureDialog

        public PictureDialog​(org.eclipse.swt.widgets.Shell parentShell,
                             IV8Project v8project,
                             Object currentPicture,
                             boolean isFull,
                             CellLabelProvider commonPictureLabelProvider,
                             IContentProvider commonPictureContentProvider,
                             CellLabelProvider platformPictureLabelProvider,
                             IContentProvider platformPictureContentProvider,
                             boolean editable)
        Creates a new instance.
        Parameters:
        parentShell - the parent shell, cannot be null
        v8project - the V8 project, cannot be null
        currentPicture - the current picture, may be null
        isFull - determines whether to show "from file" tab
        commonPictureLabelProvider - the common picture label provider, cannot be null
        commonPictureContentProvider - the common picture content provider, cannot be null
        platformPictureLabelProvider - the platform picture label provider, cannot be null
        platformPictureContentProvider - the platform picture content provider, cannot be null
        editable - the editable state, true if this model is editable, false otherwise
    • Method Detail

      • getTransparentPoint

        public Point getTransparentPoint()
        Returns:
        the Point that represent the selected transparent point
      • close

        public boolean close()
        Saves state and closes the window.
        Overrides:
        close in class org.eclipse.jface.dialogs.Dialog
      • isResizable

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

        protected void createButtonsForButtonBar​(org.eclipse.swt.widgets.Composite parent)
        Creates "Clear" button in button bar and invoke super-implementation.
        Overrides:
        createButtonsForButtonBar 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.TitleAreaDialog
      • createDialogArea

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

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

        protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
        Returns IDialogSettings instances for saving dialog size.
        Overrides:
        getDialogBoundsSettings in class org.eclipse.jface.dialogs.Dialog
      • configureShell

        protected void configureShell​(org.eclipse.swt.widgets.Shell newShell)
        Overrides:
        configureShell in class org.eclipse.jface.window.Window