- Timestamp:
- 2020-12-12T15:07:10+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java
r16824 r17404 11 11 import java.nio.file.InvalidPathException; 12 12 import java.util.ArrayList; 13 import java.util.Collection;14 13 import java.util.HashMap; 15 14 import java.util.List; 16 15 import java.util.Map; 17 16 17 import org.openstreetmap.josm.data.Preferences; 18 18 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 19 19 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; … … 194 194 @Override 195 195 protected void realRun() throws SAXException, IOException, OsmTransferException { 196 Collection<String> pluginLocations = PluginInformation.getPluginLocations(); 197 getProgressMonitor().setTicksCount(pluginLocations.size() + 2); 196 getProgressMonitor().setTicksCount(3); 198 197 if (canceled) return; 199 for (String location : pluginLocations) { 200 scanLocalPluginRepository( 201 getProgressMonitor().createSubTaskMonitor(1, false), 202 new File(location) 203 ); 204 getProgressMonitor().worked(1); 205 if (canceled) return; 206 } 198 scanLocalPluginRepository( 199 getProgressMonitor().createSubTaskMonitor(1, false), 200 Preferences.main().getPluginsDirectory() 201 ); 202 getProgressMonitor().worked(1); 203 if (canceled) return; 207 204 analyseInProcessPlugins(); 208 205 getProgressMonitor().worked(1);
Note:
See TracChangeset
for help on using the changeset viewer.