Changeset 12705 in josm for trunk/src/org/openstreetmap/josm/gui/download/OverpassDownloadSource.java
- Timestamp:
- 2017-09-01T01:07:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/OverpassDownloadSource.java
r12684 r12705 29 29 import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler; 30 30 import org.openstreetmap.josm.data.Bounds; 31 import org.openstreetmap.josm.data.preferences.AbstractProperty; 31 32 import org.openstreetmap.josm.data.preferences.BooleanProperty; 33 import org.openstreetmap.josm.data.preferences.IntegerProperty; 32 34 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 33 35 import org.openstreetmap.josm.gui.MainApplication; 36 import org.openstreetmap.josm.gui.download.DownloadSourceSizingPolicy.AdjustableDownloadSizePolicy; 34 37 import org.openstreetmap.josm.gui.preferences.server.OverpassServerPreference; 35 38 import org.openstreetmap.josm.gui.util.GuiHelper; … … 44 47 */ 45 48 public class OverpassDownloadSource implements DownloadSource<OverpassDownloadSource.OverpassDownloadData> { 49 46 50 47 51 @Override … … 81 85 public static class OverpassDownloadSourcePanel extends AbstractDownloadSourcePanel<OverpassDownloadData> { 82 86 83 private JosmTextArea overpassQuery;84 private OverpassQueryList overpassQueryList;85 86 87 private static final String SIMPLE_NAME = "overpassdownloadpanel"; 88 private static final AbstractProperty<Integer> PANEL_SIZE_PROPERTY = 89 new IntegerProperty(TAB_SPLIT_NAMESPACE + SIMPLE_NAME, 150).cached(); 87 90 private static final BooleanProperty OVERPASS_QUERY_LIST_OPENED = 88 91 new BooleanProperty("download.overpass.query-list.opened", false); 89 92 private static final String ACTION_IMG_SUBDIR = "dialogs"; 93 94 private JosmTextArea overpassQuery; 95 private OverpassQueryList overpassQueryList; 90 96 91 97 /** … … 278 284 } 279 285 286 @Override 287 public DownloadSourceSizingPolicy getSizingPolicy() { 288 return new AdjustableDownloadSizePolicy(PANEL_SIZE_PROPERTY); 289 } 290 280 291 /** 281 292 * Action that delegates snippet creation to {@link OverpassQueryList#createNewItem()}.
Note:
See TracChangeset
for help on using the changeset viewer.