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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.