Examples of StartEditingCommand


Examples of org.locationtech.udig.tools.edit.commands.StartEditingCommand

        List<UndoableMapCommand> commands=new ArrayList<UndoableMapCommand>();
        commands.add(handler.getContext().getEditFactory().createNullEditFeatureCommand());
        ILayer editLayer = handler.getEditLayer();
        EditBlackboard bb = handler.getEditBlackboard(editLayer);
        commands.add(new DeselectEditGeomCommand(handler, bb.getGeoms()));
        commands.add(new StartEditingCommand(handler, e, type));
       
        UndoableComposite undoableComposite = new UndoableComposite(commands);
        undoableComposite.setMap(handler.getContext().getMap());
        try {
            undoableComposite.run(new NullProgressMonitor());
View Full Code Here

Examples of org.locationtech.udig.tools.edit.commands.StartEditingCommand

            commands.addCommand(new SetEditStateCommand(handler, EditState.NONE));
        }

        if (typeToCreate != null) {
            if (typeToCreate == ShapeType.POINT) {
                commands.addCommand(new StartEditingCommand(handler, parameters.event,
                        typeToCreate, handler.getCurrentState()));
                commands.addCommand(handler.getCommand(handler.getAcceptBehaviours()));
            } else {
                commands.addCommand(new StartEditingCommand(handler, parameters.event,
                        typeToCreate, EditState.CREATING));
            }
        }

    }
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.