Class EmfObjectProviderImpl

java.lang.Object
com.e1c.langtool.v8.dt.internal.sync.EmfObjectProviderImpl
All Implemented Interfaces:
EmfObjectProvider

public class EmfObjectProviderImpl extends Object implements EmfObjectProvider
  • Field Details

    • modelManager

      @Inject protected IBmModelManager modelManager
    • qualifiedNameFilePathConverter

      @Inject protected IQualifiedNameFilePathConverter qualifiedNameFilePathConverter
    • qualifiedNameConverter

      @Inject protected org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter
    • externalPropertyManagerRegistry

      @Inject protected IExternalPropertyManagerRegistry externalPropertyManagerRegistry
    • bmEmfIndexManager

      @Inject protected IBmEmfIndexManager 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: EmfObjectProvider
      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.
      Specified by:
      getObjectByFile in interface EmfObjectProvider
      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

      public org.eclipse.emf.ecore.EObject getOwnerByFile(org.eclipse.core.resources.IFile emfResource)
      Description copied from interface: EmfObjectProvider
      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.
      Specified by:
      getOwnerByFile in interface EmfObjectProvider
      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.
    • 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 file
      model - the model
      Returns:
      the owner by external property