Search in sources :

Example 1 with EditTypePopup

use of org.drools.workbench.screens.guided.dtree.client.widget.popups.EditTypePopup 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();
    }
}
Also used : ActionInsertNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode) EditActionUpdatePopup(org.drools.workbench.screens.guided.dtree.client.widget.popups.EditActionUpdatePopup) ActionRetractNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode) EditTypePopup(org.drools.workbench.screens.guided.dtree.client.widget.popups.EditTypePopup) ConstraintNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ConstraintNode) Command(org.uberfire.mvp.Command) ActionUpdateNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionUpdateNode) TypeNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.TypeNode) EditActionInsertPopup(org.drools.workbench.screens.guided.dtree.client.widget.popups.EditActionInsertPopup) EditConstraintPopup(org.drools.workbench.screens.guided.dtree.client.widget.popups.EditConstraintPopup) EditActionRetractPopup(org.drools.workbench.screens.guided.dtree.client.widget.popups.EditActionRetractPopup)

Aggregations

ActionInsertNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode)1 ActionRetractNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode)1 ActionUpdateNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionUpdateNode)1 ConstraintNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ConstraintNode)1 TypeNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.TypeNode)1 EditActionInsertPopup (org.drools.workbench.screens.guided.dtree.client.widget.popups.EditActionInsertPopup)1 EditActionRetractPopup (org.drools.workbench.screens.guided.dtree.client.widget.popups.EditActionRetractPopup)1 EditActionUpdatePopup (org.drools.workbench.screens.guided.dtree.client.widget.popups.EditActionUpdatePopup)1 EditConstraintPopup (org.drools.workbench.screens.guided.dtree.client.widget.popups.EditConstraintPopup)1 EditTypePopup (org.drools.workbench.screens.guided.dtree.client.widget.popups.EditTypePopup)1 Command (org.uberfire.mvp.Command)1