Object obj = getBusinessObjectForPictogramElement(
context.getPictogramElement());
if (obj instanceof LocalVariableStatement) {
if (Utility.isPEVariable((LocalVariableStatement) obj)) {
return new DeletePEFeature(this);
} else {
return new DeleteConnectionInitializationFeature(this);
}
} else if (obj instanceof ConnectionStatement) {
return new DeleteConnectionFeature(this);