Package org.locationtech.udig.project.internal.commands.selection

Examples of org.locationtech.udig.project.internal.commands.selection.SelectLayerCommand


                    return;
                Layer layer = layers.get(0);
                // Second condition excludes unnecessary UI call
                if (layer.getMap() == getMap()
                        && getMap().getEditManager().getSelectedLayer() != layer) {
                    SelectLayerCommand selectLayerCommand = new SelectLayerCommand(layer);
                    selectLayerCommand.setMap(getMap());
                    try {
                        selectLayerCommand.run(ProgressManager.instance().get());
                    } catch (Exception e) {
                        throw (RuntimeException) new RuntimeException().initCause(e);
                    }
                    getMap().sendCommandSync(new UndoRedoCommand(selectLayerCommand));
                }
View Full Code Here


                    return;
                Layer layer = layers.get(0);
                // Second condition excludes unnecessary UI call
                if (layer.getMap() == getMap()
                        && getMap().getEditManager().getSelectedLayer() != layer) {
                    SelectLayerCommand selectLayerCommand = new SelectLayerCommand(layer);
                    selectLayerCommand.setMap(getMap());
                    try {
                        selectLayerCommand.run(ProgressManager.instance().get());
                    } catch (Exception e) {
                        throw (RuntimeException) new RuntimeException().initCause(e);
                    }
                    getMap().sendCommandSync(new UndoRedoCommand(selectLayerCommand));
                }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.commands.selection.SelectLayerCommand

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.