Search in sources :

Example 1 with RefreshDecisionComponents

use of org.kie.workbench.common.dmn.client.docks.navigator.events.RefreshDecisionComponents in project kie-wb-common by kiegroup.

the class DMNElementsSynchronizer method synchronizeElementsFrom.

public void synchronizeElementsFrom(final DRGElement drgElement) {
    final String contentDefinitionId = drgElement.getContentDefinitionId();
    final List<Node> nodes = getElementsWithContentId(contentDefinitionId);
    for (final Node node : nodes) {
        updateText(drgElement, node);
        final DRGElement element = getDRGElementFromContentDefinition(node);
        synchronizeBaseDRGProperties(drgElement, element);
        synchronizeSpecializedProperties(drgElement, element);
    }
    refreshDecisionComponentsEvent.fire(new RefreshDecisionComponents());
}
Also used : Node(org.kie.workbench.common.stunner.core.graph.Node) RefreshDecisionComponents(org.kie.workbench.common.dmn.client.docks.navigator.events.RefreshDecisionComponents) DRGElement(org.kie.workbench.common.dmn.api.definition.model.DRGElement)

Aggregations

DRGElement (org.kie.workbench.common.dmn.api.definition.model.DRGElement)1 RefreshDecisionComponents (org.kie.workbench.common.dmn.client.docks.navigator.events.RefreshDecisionComponents)1 Node (org.kie.workbench.common.stunner.core.graph.Node)1