Changeset 3412 in osm for applications/editors/josm/plugins/pluginmanager/src
- Timestamp:
- 2007-06-29T18:41:54+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/PluginDescription.java
r3335 r3412 4 4 package at.dallermassl.josm.plugin.pluginmanager; 5 5 6 import java.io.IOException;7 6 import java.util.ArrayList; 8 7 import java.util.List; 9 8 10 import org.openstreetmap.josm.plugins.PluginInformation; 9 import javax.swing.JOptionPane; 10 11 import org.openstreetmap.josm.Main; 11 12 12 13 /** … … 120 121 */ 121 122 public void install() { 123 boolean errorReported = false; 124 StringBuilder errorMessages = new StringBuilder(); 122 125 for(PluginResource resource : resources) { 123 126 resource.install(); 124 127 if(resource.getErrorMessage() != null) { 128 errorReported = true; 129 errorMessages.append(resource.getErrorMessage()).append(", "); 125 130 System.err.println("ERROR: " + resource.getErrorMessage()); 126 131 } 127 132 if(resource.getErrorException() != null) { 133 errorReported = true; 128 134 resource.getErrorException().printStackTrace(); 129 135 } 136 } 137 if(errorReported) { 138 JOptionPane.showMessageDialog(Main.parent, "One or more installs had an error: " + errorMessages.toString()); 130 139 } 131 140 }
Note:
See TracChangeset
for help on using the changeset viewer.