Class EditTemplateDialog

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

    public class EditTemplateDialog
    extends org.eclipse.jface.dialogs.StatusDialog
    Dialog to edit template
    • 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
      EditTemplateDialog​(org.eclipse.swt.widgets.Shell parent, ITemplate template, String title, com.e1c.g5.v8.dt.bsl.ui.templates.preferences.BslTemplatePreferencePage.ITemplateValidator templateValidator, ScriptVariant scriptVariant)
      Creates dialog for editing ITemplate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean close()  
      protected void configureShell​(org.eclipse.swt.widgets.Shell shell)  
      void create()  
      protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()  
      TemplateData getResult()
      Gets result of editing of TemplateData
      boolean isHelpAvailable()  
      protected boolean isResizable()  
      • Methods inherited from class org.eclipse.jface.dialogs.StatusDialog

        createButtonBar, createButtonsForButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle, updateButtonsEnableState, updateStatus
      • Methods inherited from class org.eclipse.jface.dialogs.TrayDialog

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

        applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, 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

      • EditTemplateDialog

        public EditTemplateDialog​(org.eclipse.swt.widgets.Shell parent,
                                  ITemplate template,
                                  String title,
                                  com.e1c.g5.v8.dt.bsl.ui.templates.preferences.BslTemplatePreferencePage.ITemplateValidator templateValidator,
                                  ScriptVariant scriptVariant)
        Creates dialog for editing ITemplate
        Parameters:
        parent - parent Shell for creating StatusDialog, cannot be null
        template - editing ITemplate, cannot be null
        title - dialog title, cannot be null
        templateValidator - instance of BslTemplatePreferencePage.ITemplateValidator for validation editing ITemplate, cannot be null
        scriptVariant - actual ScriptVariant for determinate language for template variables, can be null
    • Method Detail

      • isHelpAvailable

        public boolean isHelpAvailable()
        Overrides:
        isHelpAvailable in class org.eclipse.jface.dialogs.TrayDialog
      • create

        public void create()
        Overrides:
        create in class org.eclipse.jface.dialogs.StatusDialog
      • close

        public boolean close()
        Overrides:
        close 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
      • isResizable

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

        protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
        Overrides:
        getDialogBoundsSettings in class org.eclipse.jface.dialogs.Dialog
      • configureShell

        protected void configureShell​(org.eclipse.swt.widgets.Shell shell)
        Overrides:
        configureShell in class org.eclipse.jface.dialogs.StatusDialog