Changeset 11904 in josm
- Timestamp:
- 2017-04-14T21:06:41+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r11898 r11904 1302 1302 1303 1303 /** 1304 * Registers a new {@code MapFrameListener} that will be notified of MapFrame changes 1304 * Registers a new {@code MapFrameListener} that will be notified of MapFrame changes. 1305 * <p> 1306 * It will fire an initial mapFrameInitialized event when the MapFrame is present. 1307 * Otherwise will only fire when the MapFrame is created or destroyed. 1305 1308 * @param listener The MapFrameListener 1306 * @param fireWhenMapViewPresent If true, will fire an initial mapFrameInitialized event1307 * when the MapFrame is present. Otherwise will only fire when the MapFrame is created1308 * or destroyed.1309 1309 * @return {@code true} if the listeners collection changed as a result of the call 1310 */ 1311 public static boolean addMapFrameListener(MapFrameListener listener, boolean fireWhenMapViewPresent) { 1312 if (fireWhenMapViewPresent) { 1313 return mainPanel.addAndFireMapFrameListener(listener); 1314 } else { 1315 return mainPanel.addMapFrameListener(listener); 1316 } 1310 * @see #addMapFrameListener 1311 * @since 11904 1312 */ 1313 public static boolean addAndFireMapFrameListener(MapFrameListener listener) { 1314 return mainPanel.addAndFireMapFrameListener(listener); 1317 1315 } 1318 1316 … … 1321 1319 * @param listener The MapFrameListener 1322 1320 * @return {@code true} if the listeners collection changed as a result of the call 1321 * @see #addAndFireMapFrameListener 1323 1322 * @since 5957 1324 1323 */ -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r11848 r11904 281 281 } 282 282 283 /** 284 * Returns all ClassLoaders whose resource should be searched. 285 * @return all ClassLoaders whose resource should be searched 286 */ 283 287 public static Collection<ClassLoader> getResourceClassLoaders() { 284 288 return Collections.unmodifiableCollection(sources); … … 716 720 PluginProxy pluginProxy = plugin.load(klass); 717 721 pluginList.add(pluginProxy); 718 Main.add MapFrameListener(pluginProxy, true);722 Main.addAndFireMapFrameListener(pluginProxy); 719 723 } 720 724 msg = null;
Note:
See TracChangeset
for help on using the changeset viewer.