|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.StatusDialog
org.eclipse.ui.texteditor.templates.TemplatePreferencePage.EditTemplateDialog
Dialog to edit a template. Clients will usually instantiate, but may also extend.
Nested Class Summary |
---|
Nested classes inherited from class org.eclipse.jface.window.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 |
Constructor Summary | |
---|---|
TemplatePreferencePage.EditTemplateDialog(Shell parent,
Template template,
boolean edit,
boolean isNameModifiable,
ContextTypeRegistry registry)
Creates a new dialog. |
Method Summary | |
---|---|
void |
create()
Creates this window's widgetry in a new top-level shell. |
protected Control |
createDialogArea(Composite ancestor)
Creates and returns the contents of the upper part of this dialog (above the button bar). |
protected SourceViewer |
createViewer(Composite parent)
Creates the viewer to be used to display the pattern. |
protected IDialogSettings |
getDialogBoundsSettings()
Gets the dialog settings that should be used for remembering the bounds of of the dialog, according to the dialog bounds strategy. |
Template |
getTemplate()
Returns the created template. |
protected IContentAssistProcessor |
getTemplateProcessor()
Returns the content assist processor that suggests template variables. |
protected void |
okPressed()
Notifies that the ok button of this dialog has been pressed. |
Methods inherited from class org.eclipse.jface.dialogs.StatusDialog |
---|
configureShell, createButtonBar, createButtonsForButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle, updateButtonsEnableState, updateStatus |
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
---|
close, closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplatePreferencePage.EditTemplateDialog(Shell parent, Template template, boolean edit, boolean isNameModifiable, ContextTypeRegistry registry)
parent
- the shell parent of the dialogtemplate
- the template to editedit
- whether this is a new template or an existing being editedisNameModifiable
- whether the name of the template may be modifiedregistry
- the context type registry to useMethod Detail |
public void create()
Window
The default implementation of this framework method creates this window's
shell (by calling createShell
), and its controls (by
calling createContents
), then initializes this window's
shell bounds (by calling initializeBounds
).
create
in class StatusDialog
protected Control createDialogArea(Composite ancestor)
Dialog
The Dialog
implementation of this framework method creates
and returns a new Composite
with standard margins and
spacing.
The returned control's layout data must be an instance of
GridData
. This method must not modify the parent's
layout.
Subclasses must override this method but may call super
as
in the following example:
Composite composite = (Composite) super.createDialogArea(parent); //add controls to composite as necessary return composite;
createDialogArea
in class Dialog
ancestor
- the parent composite to contain the dialog area
protected SourceViewer createViewer(Composite parent)
parent
- the parent composite of the viewer
SourceViewer
protected void okPressed()
Dialog
The Dialog
implementation of this framework method sets
this dialog's return code to Window.OK
and closes the
dialog. Subclasses may override.
okPressed
in class Dialog
public Template getTemplate()
protected IContentAssistProcessor getTemplateProcessor()
protected IDialogSettings getDialogBoundsSettings()
Dialog
getDialogBoundsSettings
in class Dialog
null
if the dialog's bounds should
never be stored.Dialog.getDialogBoundsStrategy()
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.