Interface IHyperlinkFactory<P extends org.eclipse.emf.ecore.EObject>

  • Type Parameters:
    P - the type of the "project", the top-most semantic language unit
    All Known Implementing Classes:
    IvmlHyperlinkFactory, VilHyperlinkFactory, VtlHyperlinkFactory

    public interface IHyperlinkFactory<P extends org.eclipse.emf.ecore.EObject>
    Creates language-dependent hyperlinks.
    Author:
    Holger Eichelberger
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink createHyperlink​(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement, P project)
      Creates an hyperlink instance for the given ILeafNode which enables the jump to the element's declaration the node represents.
      GenericEditorOpener<?,​P,​?,​?,​?> getEditorOpener()
      Returns the editor opener.
    • Method Detail

      • createHyperlink

        org.eclipse.xtext.ui.editor.hyperlinking.AbstractHyperlink createHyperlink​(org.eclipse.xtext.nodemodel.ILeafNode parseTreeElement,
                                                                                   P project)
        Creates an hyperlink instance for the given ILeafNode which enables the jump to the element's declaration the node represents. This is a user visible feature as this hyperlink is shown when the user holds CTRL and points to an element in an editor.
        Parameters:
        parseTreeElement - the ILeafNode of the parsed resource for which this hyperlink should be created
        project - the "project" the given node is located in
        Returns:
        the hyperlink
      • getEditorOpener

        GenericEditorOpener<?,​P,​?,​?,​?> getEditorOpener()
        Returns the editor opener.
        Returns:
        the editor opener