Changeset 4068 in josm


Ignore:
Timestamp:
2011-05-02T22:02:49+02:00 (10 years ago)
Author:
jttt
Message:

Fix #6290 "Copy" does not work when selecting objects from list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r4064 r4068  
    5959import org.openstreetmap.josm.data.osm.event.DataSetListener;
    6060import org.openstreetmap.josm.data.osm.event.DatasetEventManager;
     61import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;
    6162import org.openstreetmap.josm.data.osm.event.NodeMovedEvent;
    6263import org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent;
     
    6667import org.openstreetmap.josm.data.osm.event.TagsChangedEvent;
    6768import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent;
    68 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;
    6969import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    7070import org.openstreetmap.josm.gui.DefaultNameFormatter;
    7171import org.openstreetmap.josm.gui.MapView;
     72import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener;
    7273import org.openstreetmap.josm.gui.OsmPrimitivRenderer;
    7374import org.openstreetmap.josm.gui.SideButton;
    74 import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener;
    7575import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationMemberTask;
    7676import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor;
     
    113113        lstPrimitives.setSelectionModel(selectionModel);
    114114        lstPrimitives.setCellRenderer(new OsmPrimitivRenderer());
     115        lstPrimitives.setTransferHandler(null); // Fix #6290. Drag & Drop is not supported anyway and Copy/Paste is better propagated to main window
    115116        pnl.add(new JScrollPane(lstPrimitives), BorderLayout.CENTER);
    116117
Note: See TracChangeset for help on using the changeset viewer.