Class EditTemplateDialog

java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.StatusDialog
com.e1c.g5.v8.dt.bsl.ui.templates.preferences.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

    Modifier and Type
    Method
    Description
    boolean
     
    protected void
    configureShell(org.eclipse.swt.widgets.Shell shell)
     
    void
     
    protected org.eclipse.swt.widgets.Control
    createDialogArea(org.eclipse.swt.widgets.Composite parent)
     
    protected org.eclipse.jface.dialogs.IDialogSettings
     
    Gets result of editing of TemplateData
    boolean
     
    protected boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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
    • getResult

      public TemplateData getResult()
      Gets result of editing of TemplateData
      Returns:
      result of editing of TemplateData, never null
    • 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