diff options
author | Dani Megert | 2009-03-17 13:11:17 +0000 |
---|---|---|
committer | Dani Megert | 2009-03-17 13:11:17 +0000 |
commit | 6aa33df8b4463890d8e7ff47ce152a6e5b98f579 (patch) | |
tree | 2ab713130b517548ae077c7f4db90485ed60c625 /org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java | |
parent | 9743135c41dc77ffaeefcbdb37f2aa90c78bea90 (diff) | |
download | eclipse.platform.text-6aa33df8b4463890d8e7ff47ce152a6e5b98f579.tar.gz eclipse.platform.text-6aa33df8b4463890d8e7ff47ce152a6e5b98f579.tar.xz eclipse.platform.text-6aa33df8b4463890d8e7ff47ce152a6e5b98f579.zip |
Adopted IWorkbenchCommandConstants.
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java')
-rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java index 1672191bd46..8bea4a3a8f5 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java @@ -115,6 +115,7 @@ import org.eclipse.jface.text.templates.persistence.TemplateStore; import org.eclipse.ui.ActiveShellExpression; import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchCommandConstants; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.handlers.IHandlerService; @@ -125,7 +126,6 @@ import org.eclipse.ui.internal.texteditor.TextEditorPlugin; import org.eclipse.ui.texteditor.ITextEditorActionConstants; import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds; import org.eclipse.ui.texteditor.IUpdate; -import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds; /** * A template preference page allows configuration of the templates for an @@ -545,9 +545,9 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I public void focusGained(FocusEvent e) { IAction action= (IAction)fGlobalActions.get(ITextEditorActionConstants.REDO); - handlerActivations.add(handlerService.activateHandler(IWorkbenchActionDefinitionIds.REDO, new ActionHandler(action), expression)); + handlerActivations.add(handlerService.activateHandler(IWorkbenchCommandConstants.EDIT_REDO, new ActionHandler(action), expression)); action= (IAction)fGlobalActions.get(ITextEditorActionConstants.UNDO); - handlerActivations.add(handlerService.activateHandler(IWorkbenchActionDefinitionIds.UNDO, new ActionHandler(action), expression)); + handlerActivations.add(handlerService.activateHandler(IWorkbenchCommandConstants.EDIT_UNDO, new ActionHandler(action), expression)); action= (IAction)fGlobalActions.get(ITextEditorActionConstants.CONTENT_ASSIST); handlerActivations.add(handlerService.activateHandler(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS, new ActionHandler(action), expression)); } |