Class DependencyGraphUpdater<T>
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.DependencyGraphUpdater<T>
This class's responsibility is to maintain the state of its graph when notified that a new model resource
or a new dependency have been found.
-
Constructor Summary
ConstructorDescriptionDependencyGraphUpdater
(IGraph<T> graph, com.google.common.eventbus.EventBus eventBus) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
recordEdge
(DependencyFoundEvent<T> event) Register a dependency in the graph.void
recordNode
(ResolvedEvent<T> event) Register a discovered resource in the graph.void
recordRemoval
(ResourceRemovedEvent<T> event) Register removal of nodes.
-
Constructor Details
-
DependencyGraphUpdater
Constructor.- Parameters:
graph
- The graph, must not be null.eventBus
- The event bus that will fire events to record.
-
-
Method Details
-
recordNode
Register a discovered resource in the graph.- Parameters:
event
- Event that describes the discovered resource.
-
recordEdge
Register a dependency in the graph.- Parameters:
event
- Event that describes the dependency.
-
recordRemoval
Register removal of nodes.- Parameters:
event
- The event indicating the removed nodes.
-