use of org.kie.workbench.common.stunner.project.diagram.impl.ProjectDiagramImpl in project kie-wb-common by kiegroup.
the class DMNClientProjectDiagramService method asProjectDiagramImpl.
ProjectDiagramImpl asProjectDiagramImpl(final Diagram diagram, final DMNContentResource resource) {
final String name = removeExtension(diagram.getName());
final Graph graph = diagram.getGraph();
final ProjectMetadata metadata = (ProjectMetadata) resource.getMetadata();
return new ProjectDiagramImpl(name, graph, metadata);
}
Aggregations