Bug 79581 [Commands] request: Declare a command for "Link with Editor"
I200411240800 Platform/UI should declare a retargetable toggling action/command for "Link with Editor". Currently, almost every decent view that shows editable elements has its own view toolbar button "Link with Editor". I would like to toggle these buttons via a keyboard shortcut (and the shortcut should be the same in every view :-). I'm not sure whether this should go into to the IDE or the RCP layer, but I'm sure you'll find a good place.
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/LinkEditorAction.java
return Status.OK_STATUS;
		}
	};
	private UIJob updateSelectionJob = new UIJob(
			CommonNavigatorMessages.Link_With_Editor_Job_) {
		public IStatus runInUIThread(IProgressMonitor monitor) {
			if (!commonNavigator.getCommonViewer().getControl().isDisposed()) {
				SafeRunner.run(new ISafeRunnable() {
					public void run() throws Exception {
						IWorkbenchPage page = commonNavigator.getSite()
								.getPage();
						if (page != null) {
							IEditorPart editor = page.getActiveEditor();
							if (editor != null) {
								IEditorInput input = editor.getEditorInput();
								IStructuredSelection newSelection = linkService
										.getSelectionFor(input);
								if (!newSelection.isEmpty()) {
									commonNavigator.selectReveal(newSelection);
								}
							}
						}
					}
					public void handleException(Throwable e) {
						String msg = e.getMessage() != null ? e.getMessage()
								: e.toString();
						NavigatorPlugin.logError(0, msg, e);
					}
				});
			}