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
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 TypeMethodDescriptionboolean
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
Gets result of editing ofTemplateData
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
-
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
- parentShell
for creatingStatusDialog
, cannot benull
template
- editingITemplate
, cannot benull
title
- dialog title, cannot benull
templateValidator
- instance ofBslTemplatePreferencePage.ITemplateValidator
for validation editingITemplate
, cannot benull
scriptVariant
- actualScriptVariant
for determinate language for template variables, can benull
-
-
Method Details
-
isHelpAvailable
public boolean isHelpAvailable()- Overrides:
isHelpAvailable
in classorg.eclipse.jface.dialogs.TrayDialog
-
create
public void create()- Overrides:
create
in classorg.eclipse.jface.dialogs.StatusDialog
-
getResult
Gets result of editing ofTemplateData
- Returns:
- result of editing of
TemplateData
, nevernull
-
close
public boolean close()- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
isResizable
protected boolean isResizable()- Overrides:
isResizable
in classorg.eclipse.jface.dialogs.Dialog
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()- Overrides:
getDialogBoundsSettings
in classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell) - Overrides:
configureShell
in classorg.eclipse.jface.dialogs.StatusDialog
-