Changeset 9575 in josm for trunk/src/org
- Timestamp:
- 2016-01-23T04:06:51+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r9059 r9575 17 17 import org.openstreetmap.josm.data.osm.Changeset; 18 18 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 19 import org.openstreetmap.josm.io.Capabilities; 19 20 import org.openstreetmap.josm.io.OsmApi; 20 21 import org.openstreetmap.josm.tools.ImageProvider; … … 67 68 // 68 69 boolean useOneChangeset = true; 69 int maxChunkSize = OsmApi.getOsmApi().getCapabilities().getMaxChangesetSize(); 70 Capabilities capabilities = OsmApi.getOsmApi().getCapabilities(); 71 int maxChunkSize = capabilities != null ? capabilities.getMaxChangesetSize() : -1; 70 72 if (maxChunkSize > 0 && numObjects > maxChunkSize) { 71 73 useOneChangeset = false; -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r9543 r9575 34 34 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 35 35 import org.openstreetmap.josm.gui.widgets.JosmTextField; 36 import org.openstreetmap.josm.io.Capabilities; 36 37 import org.openstreetmap.josm.io.OsmApi; 37 38 … … 226 227 add(new JPanel(), gc); 227 228 228 int maxChunkSize = OsmApi.getOsmApi().getCapabilities().getMaxChangesetSize(); 229 Capabilities capabilities = OsmApi.getOsmApi().getCapabilities(); 230 int maxChunkSize = capabilities != null ? capabilities.getMaxChangesetSize() : -1; 229 231 pnlMultiChangesetPolicyPanel.setVisible( 230 232 maxChunkSize > 0 && numUploadedObjects > maxChunkSize -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
r9484 r9575 3 3 4 4 import java.awt.Component; 5 import java.awt.GraphicsEnvironment; 5 6 import java.awt.Toolkit; 6 7 import java.awt.datatransfer.Clipboard; … … 132 133 final JTextComponent editorComponent = comboBox.getEditorComponent(); 133 134 // save unix system selection (middle mouse paste) 134 Clipboard sysSel = Toolkit.getDefaultToolkit().getSystemSelection();135 Clipboard sysSel = GraphicsEnvironment.isHeadless() ? null : Toolkit.getDefaultToolkit().getSystemSelection(); 135 136 if (sysSel != null) { 136 137 Transferable old = Utils.getTransferableContent(sysSel);
Note:
See TracChangeset
for help on using the changeset viewer.