mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-05 16:15:25 +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:
parent
2110d38eec
commit
06fe1788dc
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
/** Activate the sy context allowing shortcuts like F3(open declaration) in the view */
|
||||||
IContextService ctxtService = (IContextService) getSite().getService(IContextService.class);
|
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);
|
setPartName(ViewMessages.PROP_TITLE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue