Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
#290 Added ExitPoint to Modeling Assistant Service
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasmuelder committed Jan 12, 2016
1 parent 7b92215 commit 2034dc5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import static org.yakindu.sct.ui.editor.editor.StatechartElementTypes.REGION;
import static org.yakindu.sct.ui.editor.editor.StatechartElementTypes.STATE;
import static org.yakindu.sct.ui.editor.editor.StatechartElementTypes.TRANSITION;
import static org.yakindu.sct.ui.editor.editor.StatechartElementTypes.EXIT;


import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -47,7 +49,7 @@ public List<IElementType> getTypesForPopupBar(IAdaptable host) {

if (editPart instanceof RegionEditPart
|| editPart instanceof RegionCompartmentEditPart)
return Lists.newArrayList(ENTRY, STATE, FINALSTATE, ENTRY, CHOICE);
return Lists.newArrayList(ENTRY, STATE, FINALSTATE, ENTRY, CHOICE, EXIT);

if (editPart instanceof StateEditPart
|| editPart instanceof StateFigureCompartmentEditPart)
Expand All @@ -61,7 +63,7 @@ public List<IElementType> getTypesForPopupBar(IAdaptable host) {
public List<IElementType> getTypesForTarget(IAdaptable source,
IElementType relationshipType) {
if (StatechartElementTypes.TRANSITION.equals(relationshipType))
return Lists.newArrayList(STATE, FINALSTATE, CHOICE);
return Lists.newArrayList(STATE, FINALSTATE, CHOICE, EXIT);
return Collections.EMPTY_LIST;
}

Expand Down

0 comments on commit 2034dc5

Please sign in to comment.