org.eclipse.xtext.xtext
Class XtextLinkingService

java.lang.Object
  extended by org.eclipse.xtext.linking.impl.AbstractLinkingService
      extended by org.eclipse.xtext.linking.impl.DefaultLinkingService
          extended by org.eclipse.xtext.xtext.XtextLinkingService
All Implemented Interfaces:
ILinkingService

public class XtextLinkingService
extends DefaultLinkingService

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
XtextLinkingService()
           
 
Method Summary
 java.util.List<org.eclipse.emf.ecore.EObject> getLinkedObjects(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference ref, INode node)
          Returns all EObjects referenced by the given link text in the given context.
 void setFileExtension(java.lang.String fileExtension)
           
 
Methods inherited from class org.eclipse.xtext.linking.impl.DefaultLinkingService
getCrossRefNodeAsString, getImportedNamesAdapter, getLinkingHelper, getScope, getScopeProvider, registerImportedNamesAdapter, registerImportedNamesAdapter, setScopeProvider, unRegisterImportedNamesAdapter, unRegisterImportedNamesAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextLinkingService

public XtextLinkingService()
Method Detail

setFileExtension

@Inject
public void setFileExtension(java.lang.String fileExtension)

getLinkedObjects

public java.util.List<org.eclipse.emf.ecore.EObject> getLinkedObjects(org.eclipse.emf.ecore.EObject context,
                                                                      org.eclipse.emf.ecore.EReference ref,
                                                                      INode node)
                                                               throws IllegalNodeException
Description copied from interface: ILinkingService
Returns all EObjects referenced by the given link text in the given context. But does not set the references or modifies the passed information somehow. The returned list might contain proxy instances.

Specified by:
getLinkedObjects in interface ILinkingService
Overrides:
getLinkedObjects in class DefaultLinkingService
Returns:
the first element returned from the injected IScopeProvider which matches the text of the passed LeafNode
Throws:
IllegalNodeException