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
ConstructorsConstructorDescriptionDefaultResolutionContext(com.google.common.eventbus.EventBus eventBus, IGraph<URI> graph, DependencyGraphUpdater<URI> graphUpdater, ResourceComputationScheduler<URI> scheduler, ModelResourceListener modelResourceListener) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes resources allocated during initialization.The provider of dependencies between resources / URIscom.google.common.eventbus.EventBusTheEventBusto 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.voidInitializes 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:IResolutionContextTheEventBusto use to broadcast and receive events.- Specified by:
getEventBusin interfaceIResolutionContext
-
getGraph
Description copied from interface:IResolutionContextThe graph of dependencies.- Specified by:
getGraphin interfaceIResolutionContext
-
getGraphUpdater
Description copied from interface:IResolutionContextThe graph updater, in charge of making changes to the dependency graph.- Specified by:
getGraphUpdaterin interfaceIResolutionContext
-
getScheduler
Description copied from interface:IResolutionContextThe scheduler used to support multi-threading.- Specified by:
getSchedulerin interfaceIResolutionContext
-
getModelResourceListener
Description copied from interface:IResolutionContextThe listener of model resource changes.- Specified by:
getModelResourceListenerin interfaceIResolutionContext
-
getDependencyProvider
Description copied from interface:IResolutionContextThe provider of dependencies between resources / URIs- Specified by:
getDependencyProviderin interfaceIResolutionContext
-
getLocalResolver
Description copied from interface:IResolutionContextThe resolver for local resources.- Specified by:
getLocalResolverin interfaceIResolutionContext
-
getRemoteResolver
Description copied from interface:IResolutionContextThe resolver for "remote" (git) resources.- Specified by:
getRemoteResolverin interfaceIResolutionContext
-
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
-