public IDeleteFeature getDeleteFeature(IDeleteContext context) {
PictogramElement pictogramElement = context.getPictogramElement();
Object bo = getBusinessObjectForPictogramElement(pictogramElement);
if(bo instanceof FlowElement) {
return new DeleteFlowElementFeature(this);
} else if(bo instanceof Lane || bo instanceof Pool) {
return new DeleteLaneFeature(this);
}
return super.getDeleteFeature(context);
}