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());
}
Aggregations