Examples of startBatchingEvents()


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

        if (!isValid(handler, e, eventType))
            throw new IllegalArgumentException("Not valid state", new Exception()); //$NON-NLS-1$

        EditBlackboard editBlackboard2 = handler.getEditBlackboard(handler.getEditLayer());
        editBlackboard2.startBatchingEvents();
        try {
            if (tracker == null) {
                handler.lock(this);
                Point closestPoint = editBlackboard2.overVertex(Point.valueOf(e.x, e.y),
                        PreferenceUtil.instance().getVertexRadius(), false);
View Full Code Here

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

        this.handler = handler;
    }

    public void run( IProgressMonitor monitor ) throws Exception {
        EditBlackboard blackboard = handler.getEditBlackboard(handler.getEditLayer());
        blackboard.startBatchingEvents();
        Selection selection = blackboard.getSelection();
        undoData = new ArrayList<Bag>();
        EditState oldState = handler.getCurrentState();
        try {
            handler.setCurrentState(EditState.BUSY);
View Full Code Here

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

        return Messages.RemoveSelectedVerticesCommand_name;
    }
   
    public void rollback( IProgressMonitor monitor ) throws Exception {
        EditBlackboard blackboard = handler.getEditBlackboard(handler.getEditLayer());
        blackboard.startBatchingEvents();
       
        try {
            for( int i = undoData.size() - 1; i > -1; i-- ) {
                Bag bag = undoData.get(i);
                switch( bag.action ) {
View Full Code Here

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

        editLayer.setFilter(Filter.EXCLUDE);

        EditUtils.instance.cancelHideSelection(editLayer);

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

        handler.repaint();
    }
View Full Code Here

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

    public void rollback( IProgressMonitor monitor ) throws Exception {
        Layer editLayer = (Layer) handler.getEditLayer();
        editLayer.setFilter(oldFilter);
       
        EditBlackboard editBlackboard = handler.getEditBlackboard(editLayer);
        editBlackboard.startBatchingEvents();
        for( EditGeom geom : geoms ) {
            copyFeature(editBlackboard, geom);
        }
        handler.setCurrentState(this.currentState);
        editBlackboard.fireBatchedEvents();
View Full Code Here

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

        } else {
            IToolContext context = handler.getContext();
            ILayer editLayer = handler.getEditLayer();

            EditBlackboard editBlackboard = handler.getEditBlackboard(editLayer);
            editBlackboard.startBatchingEvents();
            BlockingSelectionAnim animation = new BlockingSelectionAnim(event.x, event.y);
            AnimationUpdater.runTimer(context.getMapDisplay(), animation);
            FeatureIterator<SimpleFeature> iter = getFeatureIterator();
            try {
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.