Changeset 16189 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-03-21T22:44:38+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r16067 r16189 54 54 import org.openstreetmap.josm.actions.JosmAction; 55 55 import org.openstreetmap.josm.actions.relation.DeleteRelationsAction; 56 import org.openstreetmap.josm.actions.relation.DuplicateRelationAction; 56 57 import org.openstreetmap.josm.actions.relation.EditRelationAction; 57 58 import org.openstreetmap.josm.command.ChangeCommand; … … 392 393 membershipMenu.addSeparator(); 393 394 } 394 RelationPopupMenus.setupHandler(membershipMenuHandler, EditRelationAction.class, DeleteRelationsAction.class); 395 RelationPopupMenus.setupHandler(membershipMenuHandler, 396 EditRelationAction.class, DuplicateRelationAction.class, DeleteRelationsAction.class); 395 397 membershipMenu.addSeparator(); 396 398 membershipMenu.add(helpRelAction); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r15811 r16189 41 41 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 42 42 import org.openstreetmap.josm.gui.PopupMenuHandler; 43 import org.openstreetmap.josm.gui.dialogs.relation.actions.DuplicateRelationAction; 43 44 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 44 45 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 93 94 final JPopupMenu popupMenu = new JPopupMenu(); 94 95 final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu); 95 RelationPopupMenus.setupHandler(popupMenuHandler );96 RelationPopupMenus.setupHandler(popupMenuHandler, DuplicateRelationAction.class); 96 97 97 98 add(buildButtonPanel(), BorderLayout.SOUTH); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationPopupMenus.java
r14685 r16189 10 10 import org.openstreetmap.josm.actions.relation.DownloadMembersAction; 11 11 import org.openstreetmap.josm.actions.relation.DownloadSelectedIncompleteMembersAction; 12 import org.openstreetmap.josm.actions.relation.DuplicateRelationAction; 12 13 import org.openstreetmap.josm.actions.relation.EditRelationAction; 13 14 import org.openstreetmap.josm.actions.relation.SelectInRelationListAction; … … 38 39 } 39 40 41 if (!exclude.contains(DuplicateRelationAction.class)) { 42 menu.addAction(new DuplicateRelationAction()); 43 } 44 40 45 if (!exclude.contains(DeleteRelationsAction.class)) { 41 46 menu.addAction(new DeleteRelationsAction());
Note:
See TracChangeset
for help on using the changeset viewer.