Navigator Link Helper

Identifier:
org.eclipse.ui.navigator.linkHelper

Since:
3.2

Description:
Provides a hook for clients that wish to extend the "Link with Editor" capability of a Common Navigator. A link helper must be included in a viewerContentBinding element of the org.eclipse.ui.navigator.viewer extension point.

Configuration Markup:

<!ELEMENT extension (linkHelper)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT linkHelper (editorInputEnablement , selectionEnablement?)>

<!ATTLIST linkHelper

class CDATA #REQUIRED

id    CDATA #REQUIRED>


<!ELEMENT editorInputEnablement (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate , reference)*>

An Eclipse Core Expression that describes when this helper can provide a selection from an editor input.



<!ELEMENT selectionEnablement (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate , reference)*>

An Eclipse Core Expression that describes when this extension can provide an IEditorInput for a given selection.



Examples:

    <extension
          point="org.eclipse.ui.navigator.linkHelper">
       <linkHelper
             class="org.eclipse.ui.internal.navigator.resources.workbench.ResourceLinkHelper"
             id="org.eclipse.ui.navigator.resources.linkHelper">
          <selectionEnablement>
             <instanceof value="org.eclipse.core.resources.IFile"/>
          </selectionEnablement>
          <editorInputEnablement>
             <instanceof value="org.eclipse.ui.IFileEditorInput"/>
          </editorInputEnablement>
       </linkHelper>
    </extension>


Copyright (c) 2002, 2009 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0