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);
} else if ((obj instanceof Output) || (obj instanceof Input)) {
//don't allow delete