Package org.openstreetmap.josm.gui.dialogs.relation

Examples of org.openstreetmap.josm.gui.dialogs.relation.RelationEditor


                        @Override
                        public void run() {
                            Main.map.relationListDialog.selectRelation(relation);
                            if (Main.pref.getBoolean("multipoly.show-relation-editor", false)) {
                                //Open relation edit window, if set up in preferences
                                RelationEditor editor = RelationEditor.getEditor(Main.main.getEditLayer(), relation, null);

                                editor.setModal(true);
                                editor.setVisible(true);
                            }
                        }
                    });
                }
            });
View Full Code Here


     * @param original The relation to duplicate
     */
    public static void duplicateRelationAndLaunchEditor(Relation original) {
        Relation copy = new Relation(original, true);
        copy.setModified(true);
        RelationEditor editor = RelationEditor.getEditor(
                Main.main.getEditLayer(),
                copy,
                null /* no selected members */
                );
        editor.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.gui.dialogs.relation.RelationEditor

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.