public boolean concurrentState() { final Group cur = getCurrentGroup(); if (cur != null && cur.getType() == GroupType.CONCURRENT_STATE) { super.endGroup(); } final Group conc1 = getOrCreateGroup( "CONC" + UniqueSequence.getValue(), "", null, GroupType.CONCURRENT_STATE, getCurrentGroup()); conc1.setDashed(true); if (cur != null && cur.getType() == GroupType.STATE) { cur.moveEntitiesTo(conc1); super.endGroup(); final Group conc2 = getOrCreateGroup( "CONC" + UniqueSequence.getValue(), "", null, GroupType.CONCURRENT_STATE, getCurrentGroup()); conc2.setDashed(true); } return true; }
@Override public void endGroup() { final Group cur = getCurrentGroup(); if (cur != null && cur.getType() == GroupType.CONCURRENT_STATE) { super.endGroup(); } super.endGroup(); }