Changeset 10982 in josm
- Timestamp:
- 2016-09-09T02:34:36+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r10763 r10982 61 61 import org.openstreetmap.josm.plugins.PluginHandler; 62 62 import org.openstreetmap.josm.plugins.PluginInformation; 63 import org.openstreetmap.josm.plugins.PluginProxy;64 63 import org.openstreetmap.josm.tools.CheckParameterUtil; 65 64 import org.openstreetmap.josm.tools.GBC; … … 155 154 // check if plugin dependences can also be loaded 156 155 Collection<PluginInformation> allPlugins = new HashSet<>(toLoad); 157 for (PluginProxy proxy : PluginHandler.pluginList) { 158 allPlugins.add(proxy.getPluginInformation()); 159 } 156 allPlugins.addAll(PluginHandler.getPlugins()); 160 157 boolean removed; 161 158 do { -
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.