Package org.eclipse.xtext.linking.impl
Class DefaultLinkingService
- java.lang.Object
-
- org.eclipse.xtext.linking.impl.AbstractLinkingService
-
- org.eclipse.xtext.linking.impl.DefaultLinkingService
-
- All Implemented Interfaces:
ILinkingService
- Direct Known Subclasses:
XtextLinkingService
public class DefaultLinkingService extends AbstractLinkingService
-
-
Constructor Summary
Constructors Constructor Description DefaultLinkingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCrossRefNodeAsString(INode node)
protected ImportedNamesAdapter
getImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
java.util.List<org.eclipse.emf.ecore.EObject>
getLinkedObjects(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference ref, INode node)
Returns allEObject
s referenced by the given link text in the given context.protected LinkingHelper
getLinkingHelper()
protected IScope
getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
IScopeProvider
getScopeProvider()
protected void
registerImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
protected void
registerImportedNamesAdapter(IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject context)
void
setScopeProvider(IScopeProvider scopeProvider)
protected void
unRegisterImportedNamesAdapter()
protected void
unRegisterImportedNamesAdapter(IScopeProvider scopeProvider)
-
-
-
Method Detail
-
getScope
protected IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
-
unRegisterImportedNamesAdapter
protected void unRegisterImportedNamesAdapter()
-
unRegisterImportedNamesAdapter
protected void unRegisterImportedNamesAdapter(IScopeProvider scopeProvider)
-
registerImportedNamesAdapter
protected void registerImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
-
registerImportedNamesAdapter
protected void registerImportedNamesAdapter(IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject context)
-
getImportedNamesAdapter
protected ImportedNamesAdapter getImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
-
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 allEObject
s 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.- Returns:
- the first element returned from the injected
IScopeProvider
which matches the text of the passednode
- Throws:
IllegalNodeException
-
getCrossRefNodeAsString
public java.lang.String getCrossRefNodeAsString(INode node) throws IllegalNodeException
- Throws:
IllegalNodeException
-
setScopeProvider
public void setScopeProvider(IScopeProvider scopeProvider)
-
getScopeProvider
public IScopeProvider getScopeProvider()
-
getLinkingHelper
protected LinkingHelper getLinkingHelper()
-
-