Changeset 192 in josm for src/org/openstreetmap
- Timestamp:
- 2007-01-10T04:55:36+01:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r191 r192 26 26 import javax.swing.UIManager; 27 27 28 import org.openstreetmap.josm.actions.AboutAction;29 28 import org.openstreetmap.josm.actions.DownloadAction; 30 29 import org.openstreetmap.josm.actions.DownloadAction.DownloadTask; … … 263 262 public static void preConstructorInit(Map<String, Collection<String>> args) { 264 263 try { 265 Main.pref.upgrade(Integer.parseInt(AboutAction.version));266 } catch (NumberFormatException e1) {267 }268 269 try {270 264 Main.proj = (Projection)Class.forName(Main.pref.get("projection")).newInstance(); 271 265 } catch (final Exception e) { … … 310 304 bounds = !args.containsKey("no-fullscreen") ? new Rectangle(0,0,screenDimension.width,screenDimension.height) : new Rectangle(1000,740); 311 305 312 306 pleaseWaitDlg = new PleaseWaitDialog(); 313 307 } 314 308 -
src/org/openstreetmap/josm/data/Preferences.java
r174 r192 161 161 } 162 162 163 public final void upgrade(int oldVersion) {164 if (oldVersion > 117) return;165 if (!properties.containsKey("color.scale"))166 properties.put("color.scale", ColorHelper.color2html(Color.white));167 }168 169 163 public Collection<Bookmark> loadBookmarks() throws IOException { 170 164 File bookmarkFile = new File(getPreferencesDir()+"bookmarks"); -
src/org/openstreetmap/josm/gui/MainApplication.java
r169 r192 101 101 } 102 102 103 // determine what classloader to be used for plugins 104 if (args.containsKey("default-classloader")) 105 PluginInformation.useJosmClassloader = true; 106 103 107 // load the early plugins 104 108 if (Main.pref.hasKey("plugins")) { … … 134 138 "\t--downloadgps=minlat,minlon,maxlat,maxlon "+tr("Download the bounding box as raw gps")+"\n"+ 135 139 "\t--selection=<searchstring> "+tr("Select with the given search")+"\n"+ 140 "\t--default-classloader "+tr("Load all plugins with the default class loader")+"\n"+ 136 141 "\t--no-fullscreen "+tr("Don't launch in fullscreen mode")+"\n"+ 137 142 "\t--reset-preferences "+tr("Reset the preferences to default")+"\n\n"+ -
src/org/openstreetmap/josm/plugins/PluginInformation.java
r169 r192 21 21 */ 22 22 public class PluginInformation { 23 24 /** 25 * Whether to use the standard classloader to load the plugins or 26 * an seperate class loader. Note that in case of the standard classloader, 27 * all plugin files has to be included in the main josm.jar classpath 28 * 29 * Set via command line parameter to true. 30 * 31 * This switch is intended for debugging JOSM (or prepackaging plugins 32 * together with JOSM). 33 */ 34 public static boolean useJosmClassloader = false; 35 23 36 public final File file; 24 37 public final String name; … … 89 102 public Class<?> loadClass() { 90 103 try { 104 if (useJosmClassloader) 105 return Class.forName(className); 106 91 107 URL[] urls = new URL[libraries.size()]; 92 108 urls = libraries.toArray(urls);
Note:
See TracChangeset
for help on using the changeset viewer.