- Timestamp:
- 2006-10-08T03:20:53+02:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r153 r154 28 28 import javax.swing.JSeparator; 29 29 import javax.swing.JToolBar; 30 import javax.swing.SwingUtilities; 30 31 import javax.swing.UIManager; 31 32 … … 272 273 } 273 274 } 275 276 SwingUtilities.updateComponentTreeUI(parent); 277 for (DownloadTask task : downloadAction.downloadTasks) 278 task.getCheckBox().updateUI(); 274 279 } 275 280 … … 312 317 public static JPanel panel = new JPanel(new BorderLayout()); 313 318 314 p rotectedfinal JMenuBar mainMenu = new JMenuBar();319 public final JMenuBar mainMenu = new JMenuBar(); 315 320 protected static Rectangle bounds; 316 321 -
src/org/openstreetmap/josm/plugins/Plugin.java
r153 r154 1 1 package org.openstreetmap.josm.plugins; 2 2 3 import java.io.FileNotFoundException; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.InputStream; 3 7 import java.net.URL; 4 8 import java.net.URLClassLoader; … … 62 66 */ 63 67 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {} 68 69 /** 70 * Copies the ressource 'from' to the file in the plugin directory named 'to'. 71 */ 72 public void copy(String from, String to) throws FileNotFoundException, IOException { 73 FileOutputStream out = new FileOutputStream(getPluginDir()+to); 74 InputStream in = getClass().getResourceAsStream(from); 75 byte[] buffer = new byte[8192]; 76 for(int len = in.read(buffer); len > 0; len = in.read(buffer)) 77 out.write(buffer, 0, len); 78 in.close(); 79 out.close(); 80 } 64 81 } -
src/org/openstreetmap/josm/plugins/PluginProxy.java
r153 r154 25 25 try { 26 26 plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame); 27 } catch (NoSuchMethodException e) { 27 28 } catch (Exception e) { 28 29 throw new PluginException(this, info.name, e);
Note:
See TracChangeset
for help on using the changeset viewer.