Class DefaultResolutionContext
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.DefaultResolutionContext
- All Implemented Interfaces:
IResolutionContext
Default implementation of
IResolutionContext
.-
Constructor Summary
ConstructorDescriptionDefaultResolutionContext
(com.google.common.eventbus.EventBus eventBus, IGraph<URI> graph, DependencyGraphUpdater<URI> graphUpdater, ResourceComputationScheduler<URI> scheduler, ModelResourceListener modelResourceListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes resources allocated during initialization.The provider of dependencies between resources / URIscom.google.common.eventbus.EventBus
TheEventBus
to use to broadcast and receive events.getGraph()
The graph of dependencies.The graph updater, in charge of making changes to the dependency graph.The implicit dependencies provider.The resolver for local resources.The listener of model resource changes.The resolver for "remote" (git) resources.The scheduler used to support multi-threading.void
Initializes the context.
-
Constructor Details
-
DefaultResolutionContext
public DefaultResolutionContext(com.google.common.eventbus.EventBus eventBus, IGraph<URI> graph, DependencyGraphUpdater<URI> graphUpdater, ResourceComputationScheduler<URI> scheduler, ModelResourceListener modelResourceListener)
-
-
Method Details
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()Description copied from interface:IResolutionContext
TheEventBus
to use to broadcast and receive events.- Specified by:
getEventBus
in interfaceIResolutionContext
-
getGraph
Description copied from interface:IResolutionContext
The graph of dependencies.- Specified by:
getGraph
in interfaceIResolutionContext
-
getGraphUpdater
Description copied from interface:IResolutionContext
The graph updater, in charge of making changes to the dependency graph.- Specified by:
getGraphUpdater
in interfaceIResolutionContext
-
getScheduler
Description copied from interface:IResolutionContext
The scheduler used to support multi-threading.- Specified by:
getScheduler
in interfaceIResolutionContext
-
getModelResourceListener
Description copied from interface:IResolutionContext
The listener of model resource changes.- Specified by:
getModelResourceListener
in interfaceIResolutionContext
-
getDependencyProvider
Description copied from interface:IResolutionContext
The provider of dependencies between resources / URIs- Specified by:
getDependencyProvider
in interfaceIResolutionContext
-
getLocalResolver
Description copied from interface:IResolutionContext
The resolver for local resources.- Specified by:
getLocalResolver
in interfaceIResolutionContext
-
getRemoteResolver
Description copied from interface:IResolutionContext
The resolver for "remote" (git) resources.- Specified by:
getRemoteResolver
in interfaceIResolutionContext
-
getImplicitDependencies
Description copied from interface:IResolutionContext
The implicit dependencies provider.- Specified by:
getImplicitDependencies
in 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
graphUpdater
to itseventBus
- initialize its
scheduler
- Specified by:
initialize
in interfaceIResolutionContext
-
dispose
public void dispose()Disposes resources allocated during initialization.- Specified by:
dispose
in interfaceIResolutionContext
-