Package com._1c.g5.modeling.xml.linking
Class DefaultLinkingService
- java.lang.Object
-
- com._1c.g5.modeling.xml.linking.DefaultLinkingService
-
- All Implemented Interfaces:
ILinkingService
public class DefaultLinkingService extends Object implements ILinkingService
Дефолтная реализация сервиса для резолвинга символических ссылок.- See Also:
DefaultLinkingService
-
-
Constructor Summary
Constructors Constructor Description DefaultLinkingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.xtext.linking.impl.ImportedNamesAdapter
getImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
com.google.inject.Provider<org.eclipse.xtext.linking.impl.ImportedNamesAdapter>
getImportedNamesAdapterProvider()
List<org.eclipse.emf.ecore.EObject>
getLinkedObjects(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, String crossRefString)
Возвращает всеEObject
'ы на которые указывает ссылкаreference
с текстомsymLinkText
в заданном контекстеcontext
org.eclipse.xtext.naming.IQualifiedNameConverter
getQualifiedNameConverter()
protected org.eclipse.xtext.scoping.IScope
getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Метод для получения scope по объекту модели и ссылкеorg.eclipse.xtext.scoping.IScopeProvider
getScopeProvider()
protected void
registerImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
protected void
registerImportedNamesAdapter(org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject context)
void
setImportedNamesAdapterProvider(com.google.inject.Provider<org.eclipse.xtext.linking.impl.ImportedNamesAdapter> importedNamesAdapterProvider)
void
setQualifiedNameConverter(org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter)
void
setScopeProvider(org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
protected void
unRegisterImportedNamesAdapter()
protected void
unRegisterImportedNamesAdapter(org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
-
-
-
Method Detail
-
getLinkedObjects
public List<org.eclipse.emf.ecore.EObject> getLinkedObjects(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, String crossRefString)
Description copied from interface:ILinkingService
Возвращает всеEObject
'ы на которые указывает ссылкаreference
с текстомsymLinkText
в заданном контекстеcontext
- Specified by:
getLinkedObjects
in interfaceILinkingService
- Parameters:
context
- контекстcrossRefString
- текст ссылки
-
setScopeProvider
public void setScopeProvider(org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
-
getScopeProvider
public org.eclipse.xtext.scoping.IScopeProvider getScopeProvider()
-
getImportedNamesAdapterProvider
public com.google.inject.Provider<org.eclipse.xtext.linking.impl.ImportedNamesAdapter> getImportedNamesAdapterProvider()
-
getQualifiedNameConverter
public org.eclipse.xtext.naming.IQualifiedNameConverter getQualifiedNameConverter()
-
setImportedNamesAdapterProvider
public void setImportedNamesAdapterProvider(com.google.inject.Provider<org.eclipse.xtext.linking.impl.ImportedNamesAdapter> importedNamesAdapterProvider)
-
setQualifiedNameConverter
public void setQualifiedNameConverter(org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter)
-
getScope
protected org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Метод для получения scope по объекту модели и ссылке- Parameters:
context
- объект модели, содержащий ссылкуreference
- ссылка- Returns:
- scope
- Throws:
IllegalStateException
- если scopeProvider == null
-
unRegisterImportedNamesAdapter
protected void unRegisterImportedNamesAdapter()
-
unRegisterImportedNamesAdapter
protected void unRegisterImportedNamesAdapter(org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
-
registerImportedNamesAdapter
protected void registerImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
-
registerImportedNamesAdapter
protected void registerImportedNamesAdapter(org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject context)
-
getImportedNamesAdapter
protected org.eclipse.xtext.linking.impl.ImportedNamesAdapter getImportedNamesAdapter(org.eclipse.emf.ecore.EObject context)
-
-