Package com.e1c.langtool.v8.dt.sync
Interface EmfObjectProvider
- All Known Implementing Classes:
EmfObjectProviderImpl
public interface EmfObjectProvider
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectgetObjectByFile(org.eclipse.core.resources.IFile emfResource) Gets the EMF object by file where it stores.org.eclipse.emf.ecore.EObjectgetOwnerByFile(org.eclipse.core.resources.IFile emfResource) Gets the V8 EMF owner of EMF stored in the file.
-
Method Details
-
getObjectByFile
org.eclipse.emf.ecore.EObject getObjectByFile(org.eclipse.core.resources.IFile emfResource) Gets 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.- 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
org.eclipse.emf.ecore.EObject getOwnerByFile(org.eclipse.core.resources.IFile emfResource) Gets 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.- 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.
-