Skip to content

Commit

Permalink
Including class names in state charts
Browse files Browse the repository at this point in the history
  • Loading branch information
abstratt committed Oct 1, 2019
1 parent d118198 commit 3f22498
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.abstratt.mdd.modelrenderer.uml2dot.UML2DOTPreferences.SHOW_STATEMACHINES;

import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.StateMachine;

import com.abstratt.mdd.modelrenderer.IRenderingSession;
Expand All @@ -22,9 +23,9 @@ public boolean renderObject(StateMachine element, IndentedPrintWriter out, IRend
out.println("style=\"rounded, dashed\";");
out.exitLevel();
out.println("];");
out.println("label = \"" + element.getName() + "\";");
out.println("label = \"" + element.getNamespace().getName() + NamedElement.SEPARATOR + element.getName() + "\";");
out.println("labeljust = \"l\";");
out.println("fontcolor = \"grey\";");
out.println("fontcolor = \"blue\";");
RenderingUtils.renderAll(session, element.getRegions());
out.exitLevel();
out.println("}");
Expand Down

0 comments on commit 3f22498

Please sign in to comment.