Package org.locationtech.udig.tools.edit.support

Examples of org.locationtech.udig.tools.edit.support.EditBlackboard.clear()


    handler.setCurrentShape(null);
    handler.setCurrentState(EditState.NONE);

    final ILayer selectedLayer = handler.getContext().getSelectedLayer();
    EditBlackboard editBlackboard = handler.getEditBlackboard(selectedLayer);
    editBlackboard.clear();

    handler.repaint();
  }

  /**
 
View Full Code Here


            try {
                List<ILayer> layers = map.getMapLayers();
                for( ILayer layer : layers ) {
                    EditBlackboard blackboard = getEditBlackBoardFromLayer(layer);
                    if (blackboard != null){
                        blackboard.clear();
                        layer.getBlackboard().put(EDIT_BLACKBOARD_KEY, null);
                    }
                }
            } finally {
                blackboardLock.unlock();
View Full Code Here

        EditUtils.instance.cancelHideSelection(editLayer);

        EditBlackboard editBlackboard = handler.getEditBlackboard(editLayer);
        editBlackboard.startBatchingEvents();
        editBlackboard.clear();
        editBlackboard.fireBatchedEvents();

        handler.repaint();
    }
View Full Code Here

            if (writeCommand == null) {
                EditBlackboard editBlackboard = handler.getEditBlackboard(layer);
                this.geoms = new ArrayList<EditGeom>(editBlackboard.getGeoms());
                geoms.remove(shape.getEditGeom());

                editBlackboard.clear();

                FeatureCollection<SimpleFeatureType, SimpleFeature>  features = getFeatures(monitor);
                if( features == null ){                   
                    return; // did not hit anything
                }
View Full Code Here

            SubProgressMonitor submonitor = new SubProgressMonitor(monitor, 5);
            writeCommand.rollback(submonitor);
            submonitor.done();

            EditBlackboard bb = handler.getEditBlackboard(layer);
            bb.clear();
            for( EditGeom geom : geoms ) {
                addGeom(bb, geom);
            }
            PrimitiveShape shell = addGeom(bb, shape.getEditGeom()).getShell();
            handler.setCurrentShape(shell);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.