|
Re: Reloading the bpmn2 diagram [message #1087422 is a reply to message #1087285] |
Thu, 15 August 2013 16:07 |
|
Hi Marco,
You could use something like the following to reset the default colors and styles for all PictogramElements:
TreeIterator<EObject> iter = getDiagram().eAllContents();
while (iter.hasNext()) {
EObject o = iter.next();
if (o instanceof PictogramElement) {
PictogramElement pe = (PictogramElement) o;
GraphicsAlgorithm ga = pe.getGraphicsAlgorithm();
EObject bo = Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(pe);
if (ga!=null && bo instanceof BaseElement)
StyleUtil.applyStyle(ga, (BaseElement)bo);
}
}
HTH,
Bob
|
|
|
|
Re: Reloading the bpmn2 diagram [message #1090787 is a reply to message #1087596] |
Tue, 20 August 2013 16:43 |
|
Cool, glad I could help
I'd be REALLY interested in seeing what you're working on, as process debugging and tracing is on my list of advanced features after a 1.0 release (coming soon, I hope!) Is this something you could share with the open source community or is it proprietary?
Thanks,
Bob
|
|
|
Powered by
FUDForum. Page generated in 0.02827 seconds