- Timestamp:
- 2013-03-19T12:58:22+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/DownloadObjectDialog.java
r5765 r5786 6 6 7 7 import java.awt.Component; 8 import java.awt.Dimension; 8 9 import java.awt.event.ItemEvent; 9 10 import java.awt.event.ItemListener; … … 90 91 // forward the enter key stroke to the download button 91 92 tfId.getKeymap().removeKeyStrokeBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false)); 93 tfId.setPreferredSize(new Dimension(400, tfId.getPreferredSize().height)); 92 94 93 95 newLayer.setToolTipText(tr("Select if the data should be downloaded into a new layer")); … … 203 205 txt=buf; 204 206 } 205 tfId.tryToPasteFrom(txt); 207 if (buf.length() <= Main.pref.getInteger("downloadprimitive.max-autopaste-length", 2000)) { 208 tfId.tryToPasteFrom(txt); 209 } 206 210 } 207 211 }
Note:
See TracChangeset
for help on using the changeset viewer.