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.StatusDialogDialog to edit template
-
-
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
-
-
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 editingITemplate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()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.IDialogSettingsgetDialogBoundsSettings()TemplateDatagetResult()Gets result of editing ofTemplateDatabooleanisHelpAvailable()protected booleanisResizable()-
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 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 Detail
-
isHelpAvailable
public boolean isHelpAvailable()
- Overrides:
isHelpAvailablein classorg.eclipse.jface.dialogs.TrayDialog
-
create
public void create()
- Overrides:
createin classorg.eclipse.jface.dialogs.StatusDialog
-
getResult
public TemplateData 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
-
-