use of org.eclipse.gemoc.timeline.model.Connection in project gemoc-studio by eclipse.
the class TimelineEditPartFactory method createEditPart.
@Override
public EditPart createEditPart(EditPart context, Object model) {
final EditPart res;
if (model instanceof PossibleStep) {
res = new PossibleStepEditPart(withLabel);
} else if (model instanceof Connection) {
res = new ConnectionEditPart();
} else if (model instanceof Choice) {
res = new ChoiceEditPart();
} else if (model instanceof Branch) {
res = new BranchEditPart();
} else if (model instanceof TimelineWindow) {
res = new TimelineWindowEditPart();
} else {
throw new IllegalStateException("don't know what to do with " + model.getClass().getName());
}
res.setModel(model);
return res;
}
use of org.eclipse.gemoc.timeline.model.Connection in project gemoc-studio-modeldebugging by eclipse.
the class TimelineEditPartFactory method createEditPart.
@Override
public EditPart createEditPart(EditPart context, Object model) {
final EditPart res;
if (model instanceof PossibleStep) {
res = new PossibleStepEditPart(withLabel);
} else if (model instanceof Connection) {
res = new ConnectionEditPart();
} else if (model instanceof Choice) {
res = new ChoiceEditPart();
} else if (model instanceof Branch) {
res = new BranchEditPart();
} else if (model instanceof TimelineWindow) {
res = new TimelineWindowEditPart();
} else {
throw new IllegalStateException("don't know what to do with " + model.getClass().getName());
}
res.setModel(model);
return res;
}
Aggregations