|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.dialogs.DialogPage org.eclipse.jface.preference.PreferencePage org.eclipse.ui.texteditor.templates.TemplatePreferencePage org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage
public class AdvancedTemplatesPreferencePage
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.ui.texteditor.templates.TemplatePreferencePage |
---|
org.eclipse.ui.texteditor.templates.TemplatePreferencePage.EditTemplateDialog |
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
AdvancedTemplatesPreferencePage(org.eclipse.jface.preference.IPreferenceStore preferenceStore,
org.eclipse.jface.text.templates.ContextTypeRegistry registry,
org.eclipse.jface.text.templates.persistence.TemplateStore templateStore)
|
Method Summary | |
---|---|
protected org.eclipse.jface.text.source.SourceViewer |
createViewer(org.eclipse.swt.widgets.Composite parent)
Creates, configures and returns a source viewer to present the template pattern on the preference page. |
void |
dispose()
The DialogPage implementation of this
IDialogPage method disposes of the page
image if it has one. |
protected org.eclipse.jface.text.templates.Template |
editTemplate(org.eclipse.jface.text.templates.Template template,
boolean edit,
boolean isNameModifiable)
Creates the edit dialog. |
protected java.lang.String |
getContextTypeForGrammar(org.eclipse.jface.text.templates.TemplateContextType contextType)
|
protected void |
updateViewerInput()
Updates the pattern viewer. |
Methods inherited from class org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage |
---|
createContents, createControl, isShowFormatterSetting |
Methods inherited from class org.eclipse.ui.texteditor.templates.TemplatePreferencePage |
---|
createTemplateEditDialog, getContextTypeRegistry, getFormatterPreferenceKey, getTableViewer, getTemplateStore, getViewer, init, performCancel, performDefaults, performOk, setContextTypeRegistry, setTemplateStore, setVisible, updateButtons |
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
---|
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
---|
computeSize, isValid, okToLeave, setContainer, setSize |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
---|
getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle |
Constructor Detail |
---|
@Inject public AdvancedTemplatesPreferencePage(org.eclipse.jface.preference.IPreferenceStore preferenceStore, org.eclipse.jface.text.templates.ContextTypeRegistry registry, org.eclipse.jface.text.templates.persistence.TemplateStore templateStore)
Method Detail |
---|
protected org.eclipse.jface.text.templates.Template editTemplate(org.eclipse.jface.text.templates.Template template, boolean edit, boolean isNameModifiable)
org.eclipse.ui.texteditor.templates.TemplatePreferencePage
editTemplate
in class org.eclipse.ui.texteditor.templates.TemplatePreferencePage
template
- the template being editededit
- whether the dialog should be editableisNameModifiable
- whether the template name may be modified
null
if the edition failedprotected void updateViewerInput()
org.eclipse.ui.texteditor.templates.TemplatePreferencePage
updateViewerInput
in class org.eclipse.ui.texteditor.templates.TemplatePreferencePage
protected java.lang.String getContextTypeForGrammar(org.eclipse.jface.text.templates.TemplateContextType contextType)
protected org.eclipse.jface.text.source.SourceViewer createViewer(org.eclipse.swt.widgets.Composite parent)
org.eclipse.ui.texteditor.templates.TemplatePreferencePage
createViewer
in class org.eclipse.ui.texteditor.templates.TemplatePreferencePage
parent
- the parent control
public void dispose()
org.eclipse.jface.dialogs.DialogPage
DialogPage
implementation of this
IDialogPage
method disposes of the page
image if it has one.
Subclasses may extend.
dispose
in interface org.eclipse.jface.dialogs.IDialogPage
dispose
in class org.eclipse.jface.dialogs.DialogPage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |