Changeset 13839 in josm for trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
- Timestamp:
- 2018-05-26T09:08:02+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r13830 r13839 177 177 formats.setToolTipText(tr("Select image format for WMS layer")); 178 178 179 if (!GraphicsEnvironment.isHeadless() && 180 1 != new ExtendedDialog(Main.parent, tr("Select WMS layers"), tr("Add layers"), tr("Cancel")) { { 181 final JScrollPane scrollPane = new JScrollPane(tree.getLayerTree()); 182 scrollPane.setPreferredSize(new Dimension(400, 400)); 183 final JPanel panel = new JPanel(new GridBagLayout()); 184 panel.add(scrollPane, GBC.eol().fill()); 185 panel.add(formats, GBC.eol().fill(GBC.HORIZONTAL)); 186 setContent(panel); 187 } }.showDialog().getValue()) { 188 return null; 179 if (!GraphicsEnvironment.isHeadless()) { 180 ExtendedDialog dialog = new ExtendedDialog(Main.parent, tr("Select WMS layers"), tr("Add layers"), tr("Cancel")); 181 final JScrollPane scrollPane = new JScrollPane(tree.getLayerTree()); 182 scrollPane.setPreferredSize(new Dimension(400, 400)); 183 final JPanel panel = new JPanel(new GridBagLayout()); 184 panel.add(scrollPane, GBC.eol().fill()); 185 panel.add(formats, GBC.eol().fill(GBC.HORIZONTAL)); 186 dialog.setContent(panel); 187 188 if (dialog.showDialog().getValue() != 1) { 189 return null; 190 } 189 191 } 190 192
Note:
See TracChangeset
for help on using the changeset viewer.