Search in sources :

Example 11 with GraphsProvider

use of org.kie.workbench.common.stunner.core.diagram.GraphsProvider in project kie-wb-common by kiegroup.

the class DeleteNodeConfirmationImpl method init.

@PostConstruct
public void init() {
    final Diagram diagram = sessionManager.getCurrentSession().getCanvasHandler().getDiagram();
    final Annotation qualifier = definitionUtils.getQualifier(diagram.getMetadata().getDefinitionSetId());
    graphsProvider = InstanceUtils.lookup(graphsProviderInstances, GraphsProvider.class, qualifier);
}
Also used : GraphsProvider(org.kie.workbench.common.stunner.core.diagram.GraphsProvider) Annotation(java.lang.annotation.Annotation) Diagram(org.kie.workbench.common.stunner.core.diagram.Diagram) PostConstruct(javax.annotation.PostConstruct)

Aggregations

GraphsProvider (org.kie.workbench.common.stunner.core.diagram.GraphsProvider)11 Test (org.junit.Test)8 Node (org.kie.workbench.common.stunner.core.graph.Node)7 ArrayDeque (java.util.ArrayDeque)3 Graph (org.kie.workbench.common.stunner.core.graph.Graph)3 ChildrenTraverseProcessorImpl (org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessorImpl)3 TreeWalkTraverseProcessorImpl (org.kie.workbench.common.stunner.core.graph.processing.traverse.tree.TreeWalkTraverseProcessorImpl)3 Annotation (java.lang.annotation.Annotation)2 Diagram (org.kie.workbench.common.stunner.core.diagram.Diagram)2 Edge (org.kie.workbench.common.stunner.core.graph.Edge)2 Deque (java.util.Deque)1 PostConstruct (javax.annotation.PostConstruct)1 ClientSession (org.kie.workbench.common.stunner.core.client.session.ClientSession)1 Metadata (org.kie.workbench.common.stunner.core.diagram.Metadata)1 Element (org.kie.workbench.common.stunner.core.graph.Element)1 Definition (org.kie.workbench.common.stunner.core.graph.content.definition.Definition)1 AbstractTreeTraverseCallback (org.kie.workbench.common.stunner.core.graph.processing.traverse.tree.AbstractTreeTraverseCallback)1 TreeWalkTraverseProcessor (org.kie.workbench.common.stunner.core.graph.processing.traverse.tree.TreeWalkTraverseProcessor)1