Package org.locationtech.udig.tools.edit.commands

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


           
        final EditBlackboard blackboard = parameters.handler.getEditBlackboard(editLayer);       
        features.accepts( new FeatureVisitor(){
                    public void visit( Feature feature ) {
                        SimpleFeature next = (SimpleFeature) feature;
                        SelectFeatureCommand selectFeatureCommand = new SelectFeatureCommand(
                                blackboard, next);
                        commands.addCommand(selectFeatureCommand);                       
                    }           
        }, null );
      } catch (Exception e) {
View Full Code Here


                    commands.addCommand(new SelectFeatureAsEditFeatureCommand(handler, feature,
                            handler.getEditLayer(), Point.valueOf(event.x, event.y)));
                } else {
                    if (onlyAdd || keyboardModifierIndicatesAdd(handler, event)) {
                        // call SelectFeaturecommand so that it is the CurrentEditGeom
                        commands.addCommand(new SelectFeatureCommand(handler, feature, Point
                                .valueOf(event.x, event.y)));
                    } else {
                        // call SelectFeaturecommand so that it is just added to the EditBlackboard
                        // but
                        // not as the CurrentEditGeom
                        commands.addCommand(new SelectFeatureCommand(handler, feature, null));
                    }
                }
            } else {
                EditPlugin.trace(EditPlugin.SELECTION,
                        "Feature is not one of the acceptable classes " + feature.getID(), null); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.commands.SelectFeatureCommand

Copyright © 2018 www.massapicom. 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.