Class ExpressionDialog

  • All Implemented Interfaces:
    IValueEditorDialog<String>, org.eclipse.core.runtime.IAdaptable, org.eclipse.jface.window.IShellProvider

    public class ExpressionDialog
    extends ValueEditorDialogResizable<String>
    implements org.eclipse.core.runtime.IAdaptable
    Dialog for DCS expression
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionDialog​(org.eclipse.swt.widgets.Shell shell, IDcsSettingsProvider settingsProvider, String expr, boolean select, boolean first, boolean editable)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createContent​(org.eclipse.swt.widgets.Composite parent)  
      Object getAdapter​(Class adapter)  
      IDcsSettingsProvider getSettingsProvider()
      Get settings provider
      ExpressionsViewer getViewer()
      Get main viewer
      protected void handleShellCloseEvent()  
      protected void okPressed()  
      • Methods inherited from class org.eclipse.jface.dialogs.Dialog

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

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

      • ExpressionDialog

        public ExpressionDialog​(org.eclipse.swt.widgets.Shell shell,
                                IDcsSettingsProvider settingsProvider,
                                String expr,
                                boolean select,
                                boolean first,
                                boolean editable)
        Constructor
        Parameters:
        shell - shell, can't be null
        settingsProvider - settings provider, can't be null
        expr - initial expression, can't be null
        select - select content
        first - first dialog
        editable - the editable state, true if this dialog is editable, false otherwise
    • Method Detail

      • okPressed

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

        protected void handleShellCloseEvent()
        Overrides:
        handleShellCloseEvent in class org.eclipse.jface.window.Window
      • getAdapter

        public Object getAdapter​(Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
      • getSettingsProvider

        public IDcsSettingsProvider getSettingsProvider()
        Get settings provider
        Returns:
        settings provider, never null
      • getViewer

        public ExpressionsViewer getViewer()
        Get main viewer
        Returns:
        viewer, never null