Skip to content

Commit 24c996f

Browse files
committed
* VBehavior (isStartAction, isDoneAction): Use
specializesFromLibrary() to check it is a start/done action or its specialization.
1 parent 0e9c794 commit 24c996f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

org.omg.sysml.plantuml/src/org/omg/sysml/plantuml/VBehavior.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545

4646
public abstract class VBehavior extends VDefault {
4747
protected boolean isDoneAction(Feature f) {
48-
return "Actions::Action::done".equals(f.getQualifiedName());
48+
return f != null && f.specializesFromLibrary("Actions::Action::done");
4949
}
5050

5151
protected boolean isStartAction(Feature f) {
52-
return "Actions::Action::start".equals(f.getQualifiedName());
52+
return f != null && f.specializesFromLibrary("Actions::Action::start");
5353
}
5454

5555
protected boolean isEntryAction(ActionUsage au) {

0 commit comments

Comments
 (0)