Exemple #1
0
 public static State getParentState(StateGraphNode s) {
   if (isTopLevel(s)) return null;
   else return (State) s.eContainer().eContainer();
 }
Exemple #2
0
 public static boolean isTopLevel(StateGraphNode s) {
   return !(s.eContainer().eContainer() instanceof State);
 }