Package org.eclipse.xtext.xtext
Class XtextLinkingService
- java.lang.Object
-
- org.eclipse.xtext.linking.impl.AbstractLinkingService
-
- org.eclipse.xtext.linking.impl.DefaultLinkingService
-
- org.eclipse.xtext.xtext.XtextLinkingService
-
- All Implemented Interfaces:
ILinkingService
public class XtextLinkingService extends DefaultLinkingService
-
-
Constructor Summary
Constructors Constructor Description XtextLinkingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.eclipse.emf.ecore.EObject>getLinkedObjects(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference ref, INode node)Returns allEObjects referenced by the given link text in the given context.voidsetFileExtension(java.lang.String fileExtension)-
Methods inherited from class org.eclipse.xtext.linking.impl.DefaultLinkingService
getCrossRefNodeAsString, getImportedNamesAdapter, getLinkingHelper, getScope, getScopeProvider, registerImportedNamesAdapter, registerImportedNamesAdapter, setScopeProvider, unRegisterImportedNamesAdapter, unRegisterImportedNamesAdapter
-
-
-
-
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 IllegalNodeExceptionDescription copied from interface:ILinkingServiceReturns allEObjects 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:
getLinkedObjectsin interfaceILinkingService- Overrides:
getLinkedObjectsin classDefaultLinkingService- Returns:
- the first element returned from the injected
IScopeProviderwhich matches the text of the passednode - Throws:
IllegalNodeException
-
-