drawShapeCommand.setPath(Display.getCurrent(), generalPath.getPathIterator());
}
private void initDrawCommands( final EditToolHandler handler, Point dragStarted ) {
if (drawShapeCommand == null) {
drawShapeCommand = new DrawPathCommand();
drawShapeCommand.setPaint(PreferenceUtil.instance().getDrawGeomsLine());
handler.getContext().sendASyncCommand(drawShapeCommand);
}
if( drawEndPoints==null ){
drawEndPoints=new DrawPathCommand();
int vertexRadius = PreferenceUtil.instance().getVertexRadius();
Path path = new Path(getDisplay());
int i = vertexRadius+vertexRadius;
path.addRectangle(dragStarted.getX()-vertexRadius, dragStarted.getY()-vertexRadius, i, i);
if( EditPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_FILL_VERTICES) ){