Changeset 10982 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2016-09-09T02:34:36+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r10963 r10982 38 38 import java.util.concurrent.FutureTask; 39 39 import java.util.jar.JarFile; 40 import java.util.stream.Collectors; 40 41 41 42 import javax.swing.AbstractAction; … … 238 239 * All installed and loaded plugins (resp. their main classes) 239 240 */ 240 p ublicstatic final Collection<PluginProxy> pluginList = new LinkedList<>();241 protected static final Collection<PluginProxy> pluginList = new LinkedList<>(); 241 242 242 243 /** 243 244 * All exceptions that occured during plugin loading 244 * @since 8938 245 */ 246 public static final Map<String, Exception> pluginLoadingExceptions = new HashMap<>(); 245 */ 246 protected static final Map<String, Exception> pluginLoadingExceptions = new HashMap<>(); 247 247 248 248 /** … … 266 266 267 267 private static PluginDownloadTask pluginDownloadTask; 268 269 /** 270 * Returns the list of currently installed and loaded plugins. 271 * @return the list of currently installed and loaded plugins 272 * @since 10982 273 */ 274 public static List<PluginInformation> getPlugins() { 275 return pluginList.stream().map(PluginProxy::getPluginInformation).collect(Collectors.toList()); 276 } 268 277 269 278 public static Collection<ClassLoader> getResourceClassLoaders() {
Note: See TracChangeset
for help on using the changeset viewer.