Search in sources :

Example 1 with ActionInsertShape

use of org.drools.workbench.screens.guided.dtree.client.widget.shapes.ActionInsertShape in project drools-wb by kiegroup.

the class ActionInsertNodeFactory method getShape.

/**
 * This returns a new Shape following a drag operation from the palette
 * @param helper
 * @return
 */
@Override
public WiresBaseShape getShape(final FactoryHelper helper) {
    final ActionInsertFactoryHelper anHelper = (ActionInsertFactoryHelper) helper;
    final ActionInsertNode node = anHelper.getContext();
    // drag proxy. We need to create a new instance of the TypeNode for use in the Decision Tree Widget
    return new ActionInsertShape(makeShape(), new ActionInsertNodeImpl(node.getClassName()), anHelper.isReadOnly());
}
Also used : ActionInsertNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode) ActionInsertShape(org.drools.workbench.screens.guided.dtree.client.widget.shapes.ActionInsertShape) ActionInsertNodeImpl(org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionInsertNodeImpl)

Aggregations

ActionInsertNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode)1 ActionInsertNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionInsertNodeImpl)1 ActionInsertShape (org.drools.workbench.screens.guided.dtree.client.widget.shapes.ActionInsertShape)1