Changeset 16433 in josm for trunk/src/org
- Timestamp:
- 2020-05-16T23:56:02+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r14231 r16433 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.util.ArrayList; … … 490 492 discussion.add(comment); 491 493 } 494 495 @Override 496 public String toString() { 497 return tr("Changeset") + " " + id + ": " + getComment(); 498 } 492 499 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r16305 r16433 11 11 import java.awt.GraphicsEnvironment; 12 12 import java.awt.Window; 13 import java.awt.datatransfer.Clipboard; 13 14 import java.awt.event.ActionEvent; 14 15 import java.awt.event.KeyEvent; … … 38 39 import javax.swing.KeyStroke; 39 40 import javax.swing.ListSelectionModel; 41 import javax.swing.TransferHandler; 40 42 import javax.swing.event.ListSelectionEvent; 41 43 import javax.swing.event.ListSelectionListener; … … 54 56 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 55 57 import org.openstreetmap.josm.gui.MainApplication; 58 import org.openstreetmap.josm.gui.datatransfer.ChangesetTransferable; 59 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 56 60 import org.openstreetmap.josm.gui.dialogs.changeset.query.ChangesetQueryDialog; 57 61 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; … … 280 284 tblChangesets.getActionMap().put("removeFromCache", actRemoveFromCacheAction); 281 285 286 tblChangesets.setTransferHandler(new TransferHandler() { 287 @Override 288 public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException { 289 List<Changeset> changesets = model.getSelectedChangesets(); 290 ChangesetTransferable transferable = new ChangesetTransferable(changesets); 291 ClipboardUtils.copy(transferable); 292 } 293 }); 294 282 295 pnl.add(new JScrollPane(tblChangesets), BorderLayout.CENTER); 283 296 pnl.add(buildChangesetTableActionPanel(), BorderLayout.WEST);
Note:
See TracChangeset
for help on using the changeset viewer.