1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

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
This commit is contained in:
Michael Scharf 2006-12-16 00:56:45 +00:00
parent 2110d38eec
commit 06fe1788dc

View file

@ -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);