Ignore:
Timestamp:
2017-09-06T22:44:38+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - see #13036 - remove last GUI stuff from DeleteCommand

File:
1 edited

Legend:

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

    r12761 r12763  
    1919import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2020import org.openstreetmap.josm.data.osm.Relation;
     21import org.openstreetmap.josm.data.osm.RelationToChildReference;
    2122import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;
    2223import org.openstreetmap.josm.gui.MainApplication;
    2324import org.openstreetmap.josm.gui.MapFrame;
     25import org.openstreetmap.josm.gui.dialogs.DeleteFromRelationConfirmationDialog;
    2426import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    2527import org.openstreetmap.josm.tools.Shortcut;
     
    4547        public boolean confirmRelationDeletion(Collection<Relation> relations) {
    4648            return DeleteAction.confirmRelationDeletion(relations);
     49        }
     50
     51        @Override
     52        public boolean confirmDeletionFromRelation(Collection<RelationToChildReference> references) {
     53            DeleteFromRelationConfirmationDialog dialog = DeleteFromRelationConfirmationDialog.getInstance();
     54            dialog.getModel().populate(references);
     55            dialog.setVisible(true);
     56            return !dialog.isCanceled();
    4757        }
    4858    };
Note: See TracChangeset for help on using the changeset viewer.