Class LocalModelsResolution

java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.AbstractResolution
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.LocalModelsResolution

public class LocalModelsResolution extends AbstractResolution
Called by EMF Compare in order to resolve the logical models corresponding to the given IResources. Only local data is available.
  • Constructor Details

    • LocalModelsResolution

      public LocalModelsResolution(IResolutionContext context, org.eclipse.core.resources.IResource left, org.eclipse.core.resources.IResource right, org.eclipse.core.resources.IResource origin, org.eclipse.core.runtime.IProgressMonitor monitor)
      Constructor.
      Parameters:
      dependencyProvider - The dependency provider
      scheduler - multi-thread support
      eventBus - The event bus to signal events
      left - left resource
      right - right resource
      origin - common ancestor resource, may be null
      monitor - The progress monitor to use
  • Method Details

    • run

      public SynchronizationModel run()
      Executes this treatment.
      Returns:
      The Logical model to use to compare the 2 or 3 resources.
    • allResourcesAreFiles

      protected boolean allResourcesAreFiles()
      Indicates whether all the resources are instances of IFile.
      Returns:
      true if and only if left and right are IFiles and origin is null or is an IFile.