Interface EmfObjectProvider

All Known Implementing Classes:
EmfObjectProviderImpl

public interface EmfObjectProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.emf.ecore.EObject
    getObjectByFile(org.eclipse.core.resources.IFile emfResource)
    Gets the EMF object by file where it stores.
    org.eclipse.emf.ecore.EObject
    getOwnerByFile(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 is IBmObject it 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 be null.
      Returns:
      the object by file, can return null if 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 is IBmObject it 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 null if the owner cannot be resolved.