From f7230852a2845e22e0a695bc13acdbd7f24129c4 Mon Sep 17 00:00:00 2001 From: Michael Scharf Date: Sat, 16 Dec 2006 00:56:45 +0000 Subject: [PATCH] fixed bug 168183: [terminal] Exception logged when switching to terminal view for the first time https://bugs.eclipse.org/bugs/show_bug.cgi?id=168183 The contexd ID defined in the plugin.xml was not used in the terminal --- .../org/eclipse/tm/terminal/internal/view/TerminalView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminal/org.eclipse.tm.terminal.view/src/org/eclipse/tm/terminal/internal/view/TerminalView.java b/terminal/org.eclipse.tm.terminal.view/src/org/eclipse/tm/terminal/internal/view/TerminalView.java index 985dc43bb31..665020ab1f1 100644 --- a/terminal/org.eclipse.tm.terminal.view/src/org/eclipse/tm/terminal/internal/view/TerminalView.java +++ b/terminal/org.eclipse.tm.terminal.view/src/org/eclipse/tm/terminal/internal/view/TerminalView.java @@ -345,7 +345,8 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalLi /** Activate the sy context allowing shortcuts like F3(open declaration) in the view */ IContextService ctxtService = (IContextService) getSite().getService(IContextService.class); - fRememberedContextActivation = ctxtService.activateContext("org.eclipse.tm.terminal.TerminalPreferencePage"); //$NON-NLS-1$ + // TODO define context if not existing + fRememberedContextActivation = ctxtService.activateContext("org.eclipse.tm.terminal.TerminalContext"); //$NON-NLS-1$ setPartName(ViewMessages.PROP_TITLE);