use of org.drools.workbench.screens.guided.dtree.client.widget.popups.EditConstraintPopup in project drools-wb by kiegroup.
the class GuidedDecisionTreeEditorPresenter method editModelNode.
public void editModelNode(final Node node, final Command callback) {
if (node instanceof TypeNode) {
final EditTypePopup popup = new EditTypePopup((TypeNode) node, new com.google.gwt.user.client.Command() {
@Override
public void execute() {
callback.execute();
}
});
popup.show();
} else if (node instanceof ConstraintNode) {
final EditConstraintPopup popup = new EditConstraintPopup((ConstraintNode) node, oracle, new com.google.gwt.user.client.Command() {
@Override
public void execute() {
callback.execute();
}
});
popup.show();
} else if (node instanceof ActionInsertNode) {
final EditActionInsertPopup popup = new EditActionInsertPopup((ActionInsertNode) node, oracle, new com.google.gwt.user.client.Command() {
@Override
public void execute() {
callback.execute();
}
});
popup.show();
} else if (node instanceof ActionUpdateNode) {
final EditActionUpdatePopup popup = new EditActionUpdatePopup((ActionUpdateNode) node, oracle, new com.google.gwt.user.client.Command() {
@Override
public void execute() {
callback.execute();
}
});
popup.show();
} else if (node instanceof ActionRetractNode) {
final EditActionRetractPopup popup = new EditActionRetractPopup((ActionRetractNode) node, new com.google.gwt.user.client.Command() {
@Override
public void execute() {
callback.execute();
}
});
popup.show();
}
}
Aggregations