Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2009-03-17 13:11:17 +0000
committerDani Megert2009-03-17 13:11:17 +0000
commit6aa33df8b4463890d8e7ff47ce152a6e5b98f579 (patch)
tree2ab713130b517548ae077c7f4db90485ed60c625 /org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java
parent9743135c41dc77ffaeefcbdb37f2aa90c78bea90 (diff)
downloadeclipse.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.java6
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));
}

Back to the top