Changeset 7047 in josm for trunk


Ignore:
Timestamp:
2014-05-02T02:25:36+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #7042 - Add "call relation editor" to context menu of validator dialog

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java

    r7005 r7047  
    1414/**
    1515 * Ancestor for all actions that want to work with relation collection and
    16  * to be disabled is the collection is empty
     16 * to be disabled if the collection is empty
    1717 * @since 5793
    1818 */
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r7005 r7047  
    2929import org.openstreetmap.josm.Main;
    3030import org.openstreetmap.josm.actions.AutoScaleAction;
     31import org.openstreetmap.josm.actions.relation.EditRelationAction;
    3132import org.openstreetmap.josm.command.Command;
    3233import org.openstreetmap.josm.data.SelectionChangedListener;
     
    9293
    9394        popupMenuHandler.addAction(Main.main.menu.autoScaleActions.get("problem"));
     95        popupMenuHandler.addAction(new EditRelationAction());
    9496
    9597        tree = new ValidatorTreePanel();
     
    503505            selectButton.setEnabled(false);
    504506
    505             boolean hasFixes = setSelection(null, false);
     507            Collection<OsmPrimitive> sel = new HashSet<>();
     508            boolean hasFixes = setSelection(sel, true);
    506509            fixButton.setEnabled(hasFixes);
     510            popupMenuHandler.setPrimitives(sel);
    507511            if (Main.map != null) {
    508512                Main.map.repaint();
Note: See TracChangeset for help on using the changeset viewer.