Class EmfObjectProviderImpl
java.lang.Object
com.e1c.langtool.v8.dt.internal.sync.EmfObjectProviderImpl
- All Implemented Interfaces:
EmfObjectProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IBmEmfIndexManagerprotected IExternalPropertyManagerRegistryprotected IBmModelManagerprotected org.eclipse.xtext.naming.IQualifiedNameConverterprotected IQualifiedNameFilePathConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectgetObjectByFile(org.eclipse.core.resources.IFile emfResource) Gets the EMF object by file where it stores.protected org.eclipse.emf.ecore.EObjectgetOwnerByExternalProperty(org.eclipse.core.resources.IFile sourceFile, IBmModel model) Gets the owner by external property.org.eclipse.emf.ecore.EObjectgetOwnerByFile(org.eclipse.core.resources.IFile emfResource) Gets the V8 EMF owner of EMF stored in the file.protected org.eclipse.emf.ecore.resource.ResourceSetgetResourceSet(org.eclipse.core.resources.IFile modelFile)
-
Field Details
-
modelManager
-
qualifiedNameFilePathConverter
-
qualifiedNameConverter
@Inject protected org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter -
externalPropertyManagerRegistry
-
bmEmfIndexManager
-
-
Constructor Details
-
EmfObjectProviderImpl
public EmfObjectProviderImpl()
-
-
Method Details
-
getObjectByFile
public org.eclipse.emf.ecore.EObject getObjectByFile(org.eclipse.core.resources.IFile emfResource) Description copied from interface:EmfObjectProviderGets the EMF object by file where it stores. If the object isIBmObjectit return object from read-only transaction. Callers may start modifiable transaction before this call to be able to modify the object.- Specified by:
getObjectByFilein interfaceEmfObjectProvider- Parameters:
emfResource- the emf resource file, cannot benull.- Returns:
- the object by file, can return
nullif file not exist or cannot load EMF object.
-
getOwnerByFile
public org.eclipse.emf.ecore.EObject getOwnerByFile(org.eclipse.core.resources.IFile emfResource) Description copied from interface:EmfObjectProviderGets the V8 EMF owner of EMF stored in the file. If the object isIBmObjectit return object from read-only transaction. Callers may start modifiable transaction before this call to be able to modify the object.- Specified by:
getOwnerByFilein interfaceEmfObjectProvider- Parameters:
emfResource- the emf resource file to get it's owner object- Returns:
- the owner by file, can return
nullif the owner cannot be resolved.
-
getResourceSet
protected org.eclipse.emf.ecore.resource.ResourceSet getResourceSet(org.eclipse.core.resources.IFile modelFile) -
getOwnerByExternalProperty
protected org.eclipse.emf.ecore.EObject getOwnerByExternalProperty(org.eclipse.core.resources.IFile sourceFile, IBmModel model) Gets the owner by external property.- Parameters:
sourceFile- the source filemodel- the model- Returns:
- the owner by external property
-