Class DefaultResolutionContext
- java.lang.Object
-
- org.eclipse.emf.compare.ide.ui.internal.logical.resolver.DefaultResolutionContext
-
- All Implemented Interfaces:
IResolutionContext
public class DefaultResolutionContext extends Object implements IResolutionContext
Default implementation ofIResolutionContext.
-
-
Constructor Summary
Constructors Constructor Description DefaultResolutionContext(com.google.common.eventbus.EventBus eventBus, IGraph<URI> graph, DependencyGraphUpdater<URI> graphUpdater, ResourceComputationScheduler<URI> scheduler, ModelResourceListener modelResourceListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes resources allocated during initialization.IResourceDependencyProvidergetDependencyProvider()The provider of dependencies between resources / URIscom.google.common.eventbus.EventBusgetEventBus()TheEventBusto use to broadcast and receive events.IGraph<URI>getGraph()The graph of dependencies.DependencyGraphUpdater<URI>getGraphUpdater()The graph updater, in charge of making changes to the dependency graph.IImplicitDependenciesgetImplicitDependencies()The implicit dependencies provider.IResourceDependencyLocalResolvergetLocalResolver()The resolver for local resources.ModelResourceListenergetModelResourceListener()The listener of model resource changes.IResourceDependencyRemoteResolvergetRemoteResolver()The resolver for "remote" (git) resources.ResourceComputationScheduler<URI>getScheduler()The scheduler used to support multi-threading.voidinitialize()Initializes the context.
-
-
-
Constructor Detail
-
DefaultResolutionContext
public DefaultResolutionContext(com.google.common.eventbus.EventBus eventBus, IGraph<URI> graph, DependencyGraphUpdater<URI> graphUpdater, ResourceComputationScheduler<URI> scheduler, ModelResourceListener modelResourceListener)
-
-
Method Detail
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()
Description copied from interface:IResolutionContextTheEventBusto use to broadcast and receive events.- Specified by:
getEventBusin interfaceIResolutionContext
-
getGraph
public IGraph<URI> getGraph()
Description copied from interface:IResolutionContextThe graph of dependencies.- Specified by:
getGraphin interfaceIResolutionContext
-
getGraphUpdater
public DependencyGraphUpdater<URI> getGraphUpdater()
Description copied from interface:IResolutionContextThe graph updater, in charge of making changes to the dependency graph.- Specified by:
getGraphUpdaterin interfaceIResolutionContext
-
getScheduler
public ResourceComputationScheduler<URI> getScheduler()
Description copied from interface:IResolutionContextThe scheduler used to support multi-threading.- Specified by:
getSchedulerin interfaceIResolutionContext
-
getModelResourceListener
public ModelResourceListener getModelResourceListener()
Description copied from interface:IResolutionContextThe listener of model resource changes.- Specified by:
getModelResourceListenerin interfaceIResolutionContext
-
getDependencyProvider
public IResourceDependencyProvider getDependencyProvider()
Description copied from interface:IResolutionContextThe provider of dependencies between resources / URIs- Specified by:
getDependencyProviderin interfaceIResolutionContext
-
getLocalResolver
public IResourceDependencyLocalResolver getLocalResolver()
Description copied from interface:IResolutionContextThe resolver for local resources.- Specified by:
getLocalResolverin interfaceIResolutionContext
-
getRemoteResolver
public IResourceDependencyRemoteResolver getRemoteResolver()
Description copied from interface:IResolutionContextThe resolver for "remote" (git) resources.- Specified by:
getRemoteResolverin interfaceIResolutionContext
-
getImplicitDependencies
public IImplicitDependencies getImplicitDependencies()
Description copied from interface:IResolutionContextThe implicit dependencies provider.- Specified by:
getImplicitDependenciesin interfaceIResolutionContext
-
initialize
public void initialize()
Initializes the context. When initialized, the context will:- install a listener on the workspace to keep track of modified resources
- Register its
graphUpdaterto itseventBus - initialize its
scheduler
- Specified by:
initializein interfaceIResolutionContext
-
dispose
public void dispose()
Disposes resources allocated during initialization.- Specified by:
disposein interfaceIResolutionContext
-
-