diff --git a/terminal/org.eclipse.tm.terminal.view/plugin.properties b/terminal/org.eclipse.tm.terminal.view/plugin.properties index aed55c3b218..cab8c36f3f4 100644 --- a/terminal/org.eclipse.tm.terminal.view/plugin.properties +++ b/terminal/org.eclipse.tm.terminal.view/plugin.properties @@ -21,9 +21,6 @@ terminal.views.view.name = Terminal terminal.views.view.font.description = The font for the terminal console. terminal.views.view.font.label = Terminal Console Font -terminal.view.context.name=Terminal view context -terminal.view.context.description=control-q override - terminal.view.insertion.description=Terminal view insertion terminal.view.insertion.name=Terminal view insert terminal.view.insertion.category.name=Terminal view commands diff --git a/terminal/org.eclipse.tm.terminal.view/plugin.xml b/terminal/org.eclipse.tm.terminal.view/plugin.xml index abc4f75035f..7c8a24cf8ee 100644 --- a/terminal/org.eclipse.tm.terminal.view/plugin.xml +++ b/terminal/org.eclipse.tm.terminal.view/plugin.xml @@ -62,14 +62,6 @@ - - - - - - - - - - - - - - - - - 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 665020ab1f1..745d47780e0 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 @@ -97,9 +97,6 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalLi private SettingsStore fStore; - /** Remember the item with which we contributed the shortcut to unregister them again! */ - private IContextActivation fRememberedContextActivation; - public TerminalView() { Logger .log("==============================================================="); //$NON-NLS-1$ @@ -346,7 +343,6 @@ 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); // TODO define context if not existing - fRememberedContextActivation = ctxtService.activateContext("org.eclipse.tm.terminal.TerminalContext"); //$NON-NLS-1$ setPartName(ViewMessages.PROP_TITLE); @@ -371,14 +367,6 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalLi MenuManager menuMgr; Menu menu; - /** The context (for short cuts) was set above, now unset it again */ - if (fRememberedContextActivation != null) { - IContextService ctxService = (IContextService) getSite() - .getService(IContextService.class); - ctxService.deactivateContext(fRememberedContextActivation); - fRememberedContextActivation = null; - } - JFaceResources.getFontRegistry().removeListener(fPropertyChangeHandler); plugin = TerminalViewPlugin.getDefault(); workbench = plugin.getWorkbench(); diff --git a/terminal/org.eclipse.tm.terminal/plugin.properties b/terminal/org.eclipse.tm.terminal/plugin.properties index a59737ceb8a..8605cb8ddf1 100644 --- a/terminal/org.eclipse.tm.terminal/plugin.properties +++ b/terminal/org.eclipse.tm.terminal/plugin.properties @@ -16,3 +16,7 @@ ############################################################################### pluginName = TM Terminal Widget providerName = Eclipse.org + +terminal.view.name=Terminal view context +terminal.view.description=control-q override + diff --git a/terminal/org.eclipse.tm.terminal/plugin.xml b/terminal/org.eclipse.tm.terminal/plugin.xml index 9be93ce975a..5fa64c8c4bd 100644 --- a/terminal/org.eclipse.tm.terminal/plugin.xml +++ b/terminal/org.eclipse.tm.terminal/plugin.xml @@ -17,4 +17,72 @@ point="org.eclipse.tm.terminal.terminalConnector"> + + + + + + + + + + + + + + + + +