Open GoogleCodeExporter opened 9 years ago
maybe we can add a config flag for this as for some project this option will
clutter the screen too much.
Original comment by fmorbini
on 11 Nov 2012 at 4:53
In the meantime, here is a small patch that force display of guard and exec
Index:
trunk/fsm-editor/src/com/mxgraph/examples/swing/editor/scxml/SCXMLGraph.java
===================================================================
---
trunk/fsm-editor/src/com/mxgraph/examples/swing/editor/scxml/SCXMLGraph.java (re
vision 171)
+++
trunk/fsm-editor/src/com/mxgraph/examples/swing/editor/scxml/SCXMLGraph.java (wo
rking copy)
@@ -631,7 +631,18 @@
return node.getID();
} else if (v instanceof SCXMLEdge) {
SCXMLEdge edge=((SCXMLEdge)v);
- return edge.getEvent();
+
+ String label = edge.getEvent();
+
+ if (edge.getCondition().length() > 0) {
+ label += "\n [" + edge.getCondition() + "]";
+ }
+ if (edge.getExe().length() > 0) {
+ label += " / " + edge.getExe();
+ }
+ return label;
+
+
} else {
return "";
}
Original comment by aurelien.labrosse
on 10 Jan 2013 at 4:48
Original issue reported on code.google.com by
msqwe...@yahoo.com
on 11 Nov 2012 at 7:58