Changeset 3090 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
- Timestamp:
- 2010-03-06T12:37:34+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r3083 r3090 38 38 private static final Logger logger = Logger.getLogger(PluginDownloadTask.class.getName()); 39 39 40 private final Collection<PluginInformation> toUpdate ;40 private final Collection<PluginInformation> toUpdate = new LinkedList<PluginInformation>(); 41 41 private final Collection<PluginInformation> failed = new LinkedList<PluginInformation>(); 42 42 private final Collection<PluginInformation> downloaded = new LinkedList<PluginInformation>(); … … 56 56 super(parent, title == null ? "" : title, false /* don't ignore exceptions */); 57 57 CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate"); 58 this.toUpdate = toUpdate;58 this.toUpdate.addAll(toUpdate); 59 59 } 60 60 … … 70 70 super(title, monitor == null? NullProgressMonitor.INSTANCE: monitor, false /* don't ignore exceptions */); 71 71 CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate"); 72 this.toUpdate = toUpdate; 72 this.toUpdate.addAll(toUpdate); 73 } 74 75 /** 76 * Sets the collection of plugins to update. 77 * 78 * @param toUpdate the collection of plugins to update. Must not be null. 79 * @throws IllegalArgumentException thrown if toUpdate is null 80 */ 81 public void setPluginsToDownload(Collection<PluginInformation> toUpdate) throws IllegalArgumentException{ 82 CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate"); 83 this.toUpdate.clear(); 84 this.toUpdate.addAll(toUpdate); 73 85 } 74 86
Note:
See TracChangeset
for help on using the changeset viewer.