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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsConstructorDescriptionEditTemplateDialog(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 editingITemplate -
Method Summary
Modifier and TypeMethodDescriptionbooleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell shell) voidcreate()protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.jface.dialogs.IDialogSettingsGets result of editing ofTemplateDatabooleanprotected booleanMethods inherited from class org.eclipse.jface.dialogs.StatusDialog
createButtonBar, createButtonsForButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle, updateButtonsEnableState, updateStatusMethods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableMethods 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, shortenTextMethods 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 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 editingITemplate- Parameters:
parent- parentShellfor creatingStatusDialog, cannot benulltemplate- editingITemplate, cannot benulltitle- dialog title, cannot benulltemplateValidator- instance ofBslTemplatePreferencePage.ITemplateValidatorfor validation editingITemplate, cannot benullscriptVariant- actualScriptVariantfor determinate language for template variables, can benull
-
-
Method Details
-
isHelpAvailable
public boolean isHelpAvailable()- Overrides:
isHelpAvailablein classorg.eclipse.jface.dialogs.TrayDialog
-
create
public void create()- Overrides:
createin classorg.eclipse.jface.dialogs.StatusDialog
-
getResult
Gets result of editing ofTemplateData- Returns:
- result of editing of
TemplateData, nevernull
-
close
public boolean close()- Overrides:
closein classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
isResizable
protected boolean isResizable()- Overrides:
isResizablein classorg.eclipse.jface.dialogs.Dialog
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()- Overrides:
getDialogBoundsSettingsin classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell) - Overrides:
configureShellin classorg.eclipse.jface.dialogs.StatusDialog
-