Changeset 33748 in osm for applications/editors/josm/plugins/imagery_cachexport
- Timestamp:
- 2017-10-30T20:10:22+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/imagery_cachexport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_cachexport/build.xml
r33073 r33748 11 11 <property name="commit.message" value="Commit message"/> 12 12 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 13 <property name="plugin.main.version" value="1 1197"/>13 <property name="plugin.main.version" value="12847"/> 14 14 15 15 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/imagery_cachexport/src/org/openstreetmap/josm/plugins/imagery_cachexport/AbstractImageryCacheExportAction.java
r33073 r33748 23 23 import org.openstreetmap.josm.Main; 24 24 import org.openstreetmap.josm.data.cache.BufferedImageCacheEntry; 25 import org.openstreetmap.josm.gui.MainApplication; 25 26 import org.openstreetmap.josm.gui.Notification; 26 27 import org.openstreetmap.josm.gui.PleaseWaitRunnable; … … 255 256 cacheKeyPrefix, keySet, objects); 256 257 if (task != null) { 257 Main .worker.submit(task);258 MainApplication.worker.submit(task); 258 259 } 259 260 } -
applications/editors/josm/plugins/imagery_cachexport/src/org/openstreetmap/josm/plugins/imagery_cachexport/ImageryTileExportDialog.java
r33073 r33748 20 20 import org.openstreetmap.josm.gui.ExtendedDialog; 21 21 import org.openstreetmap.josm.gui.widgets.JosmTextField; 22 import org.openstreetmap.josm.spi.preferences.Config; 22 23 import org.openstreetmap.josm.tools.GBC; 23 24 … … 55 56 exportDir.setHint(tr("file system path")); 56 57 exportDir.setToolTipText(tr("File system path the tiles are exported to.")); 57 exportDir.setText( Main.pref.get(EXPORT_DIR_PNAME, null));58 exportDir.setText(Config.getPref().get(EXPORT_DIR_PNAME, null)); 58 59 exportDir.getDocument().addDocumentListener(new DocumentListener() { 59 60 @Override … … 75 76 76 77 appendName.setToolTipText(tr("Append cache name to export directory.")); 77 appendName.setSelected( Main.pref.getBoolean(APPEND_NAME_PNAME));78 appendName.setSelected(Config.getPref().getBoolean(APPEND_NAME_PNAME)); 78 79 ChangeListener appendNameChangeListener = new ChangeListener() { 79 80 @Override … … 213 214 */ 214 215 public void storePrefs() { 215 Main.pref.put(EXPORT_DIR_PNAME, exportDir.getText());216 Main.pref.put(APPEND_NAME_PNAME, appendName.isSelected());216 Config.getPref().put(EXPORT_DIR_PNAME, exportDir.getText()); 217 Config.getPref().putBoolean(APPEND_NAME_PNAME, appendName.isSelected()); 217 218 } 218 219 }
Note:
See TracChangeset
for help on using the changeset viewer.