Changeset 10212 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2016-05-15T00:51:10+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r9992 r10212 23 23 import java.io.Reader; 24 24 import java.net.URI; 25 import java.net.URISyntaxException; 25 26 import java.util.ArrayList; 26 27 import java.util.Arrays; … … 34 35 import org.openstreetmap.josm.Main; 35 36 import org.openstreetmap.josm.actions.OpenFileAction; 37 import org.openstreetmap.josm.gui.FileDrop.TransferableObject; 36 38 37 39 // CHECKSTYLE.OFF: HideUtilityClassConstructor … … 138 140 try { 139 141 List<File> list = new ArrayList<>(); 140 String line = null;142 String line; 141 143 while ((line = bReader.readLine()) != null) { 142 144 try { … … 146 148 } 147 149 148 File file = new File(new URI(line)); 149 list.add(file); 150 } catch (Exception ex) { 150 list.add(new File(new URI(line))); 151 } catch (URISyntaxException ex) { 151 152 Main.warn("Error with " + line + ": " + ex.getMessage()); 152 153 } -
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r9759 r10212 66 66 try { 67 67 instance.initFromOAuth(); 68 } catch ( Exception e) {68 } catch (RuntimeException e) { 69 69 Main.error(e); 70 70 // Fall back to preferences if OAuth identification fails for any reason … … 304 304 accessTokenSecretChanged = false; 305 305 if (OsmApi.isUsingOAuth()) { 306 try { 307 getInstance().initFromOAuth(); 308 } catch (Exception e) { 309 Main.error(e); 310 } 306 getInstance().initFromOAuth(); 311 307 } 312 308 } -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r10200 r10212 403 403 try (InputStream is = HttpClient.create(new URL(i)).connect().getContent()) { 404 404 config.openAndReadXML(is); 405 } catch ( Exception ex) {405 } catch (IOException ex) { 406 406 throw new RuntimeException(ex); 407 407 } -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r10191 r10212 1097 1097 try { 1098 1098 thread.interrupt(); 1099 } catch ( Exception e) {1099 } catch (RuntimeException e) { 1100 1100 Main.error(e); 1101 1101 } -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r10055 r10212 5 5 import java.awt.EventQueue; 6 6 import java.io.IOException; 7 import java.lang.reflect.InvocationTargetException; 7 8 8 9 import javax.swing.SwingUtilities; … … 122 123 } 123 124 } 124 } catch (final Exception e) { 125 } catch (final RuntimeException | 126 OsmTransferException | IOException | SAXException | InvocationTargetException | InterruptedException e) { 125 127 if (!ignoreException) { 126 128 // Exception has to thrown in EDT to be shown to user -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r10001 r10212 199 199 @Override 200 200 public void paint(Graphics g) { 201 try { 202 super.paint(g); 203 204 // draw selection rectangle 205 if (iSelectionRectStart != null && iSelectionRectEnd != null) { 206 Rectangle box = new Rectangle(getMapPosition(iSelectionRectStart, false)); 207 box.add(getMapPosition(iSelectionRectEnd, false)); 208 209 g.setColor(new Color(0.9f, 0.7f, 0.7f, 0.6f)); 210 g.fillRect(box.x, box.y, box.width, box.height); 211 212 g.setColor(Color.BLACK); 213 g.drawRect(box.x, box.y, box.width, box.height); 214 } 215 } catch (Exception e) { 216 Main.error(e); 201 super.paint(g); 202 203 // draw selection rectangle 204 if (iSelectionRectStart != null && iSelectionRectEnd != null) { 205 Rectangle box = new Rectangle(getMapPosition(iSelectionRectStart, false)); 206 box.add(getMapPosition(iSelectionRectEnd, false)); 207 208 g.setColor(new Color(0.9f, 0.7f, 0.7f, 0.6f)); 209 g.fillRect(box.x, box.y, box.width, box.height); 210 211 g.setColor(Color.BLACK); 212 g.drawRect(box.x, box.y, box.width, box.height); 217 213 } 218 214 } -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r10179 r10212 45 45 import org.openstreetmap.gui.jmapviewer.interfaces.MapMarker; 46 46 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; 47 import org.openstreetmap.josm.Main;48 47 import org.openstreetmap.josm.data.Bounds; 49 48 import org.openstreetmap.josm.data.Version; … … 694 693 @Override 695 694 public void paint(Graphics g) { 696 try { 697 super.paint(g); 698 if (min == null || max == null) return; 699 int zoomDiff = MAX_ZOOM - zoom; 700 Point tlc = getTopLeftCoordinates(); 701 int xMin = (min.x >> zoomDiff) - tlc.x; 702 int yMin = (min.y >> zoomDiff) - tlc.y; 703 int xMax = (max.x >> zoomDiff) - tlc.x; 704 int yMax = (max.y >> zoomDiff) - tlc.y; 705 706 int w = xMax - xMin; 707 int h = yMax - yMin; 708 g.setColor(new Color(0.9f, 0.7f, 0.7f, 0.6f)); 709 g.fillRect(xMin, yMin, w, h); 710 711 g.setColor(Color.BLACK); 712 g.drawRect(xMin, yMin, w, h); 713 } catch (Exception e) { 714 Main.error(e); 715 } 695 super.paint(g); 696 if (min == null || max == null) return; 697 int zoomDiff = MAX_ZOOM - zoom; 698 Point tlc = getTopLeftCoordinates(); 699 int xMin = (min.x >> zoomDiff) - tlc.x; 700 int yMin = (min.y >> zoomDiff) - tlc.y; 701 int xMax = (max.x >> zoomDiff) - tlc.x; 702 int yMax = (max.y >> zoomDiff) - tlc.y; 703 704 int w = xMax - xMin; 705 int h = yMax - yMin; 706 g.setColor(new Color(0.9f, 0.7f, 0.7f, 0.6f)); 707 g.fillRect(xMin, yMin, w, h); 708 709 g.setColor(Color.BLACK); 710 g.drawRect(xMin, yMin, w, h); 716 711 } 717 712 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentPanel.java
r10124 r10212 235 235 }); 236 236 } 237 } catch (final Exception e) {237 } catch (final RuntimeException e) { 238 238 GuiHelper.runInEDT(new Runnable() { 239 239 @Override -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r10106 r10212 16 16 import java.beans.PropertyChangeEvent; 17 17 import java.beans.PropertyChangeListener; 18 import java.io.IOException; 18 19 import java.net.URI; 19 20 import java.net.URISyntaxException; … … 1216 1217 } 1217 1218 } 1218 } catch ( Exception e) {1219 } catch (URISyntaxException | IOException e) { 1219 1220 Main.error(e); 1220 1221 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r9543 r10212 426 426 } 427 427 }); 428 } catch ( Exception e) {428 } catch (OsmTransferException e) { 429 429 if (canceled) { 430 430 Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString())); … … 475 475 refreshView(r); 476 476 } 477 } catch ( Exception e) {477 } catch (OsmTransferException e) { 478 478 if (canceled) { 479 479 Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString())); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationMemberTask.java
r9241 r10212 143 143 ); 144 144 145 } catch ( Exception e) {145 } catch (OsmTransferException e) { 146 146 if (canceled) { 147 147 Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString())); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationTask.java
r9078 r10212 5 5 6 6 import java.io.IOException; 7 import java.lang.reflect.InvocationTargetException; 7 8 import java.util.Collection; 8 9 … … 107 108 } 108 109 ); 109 } catch ( Exception e) {110 } catch (OsmTransferException | InvocationTargetException | InterruptedException e) { 110 111 if (canceled) { 111 112 Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString())); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTransferHandler.java
r9993 r10212 54 54 importPrimitiveData(support, destination, insertRow); 55 55 } 56 } catch ( Exception e) {56 } catch (IOException | UnsupportedFlavorException e) { 57 57 Main.warn(e); 58 58 return false; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ParentRelationLoadingTask.java
r9999 r10212 188 188 ); 189 189 } 190 } catch ( Exception e) {190 } catch (OsmTransferException e) { 191 191 if (canceled) { 192 192 Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString())); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r10113 r10212 106 106 return e.getConstructor(Relation.class, Collection.class).newInstance(layer, r, selectedMembers); 107 107 } 108 } catch ( Exception ex) {108 } catch (ReflectiveOperationException ex) { 109 109 Main.warn(ex); 110 110 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java
r9078 r10212 157 157 ds = reader.parseOsm(progressMonitor 158 158 .createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false)); 159 } catch ( Exception e) {159 } catch (OsmTransferException e) { 160 160 if (canceled) { 161 161 Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString())); -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java
r9371 r10212 147 147 try { 148 148 bookmarks.add(new Bookmark(entry)); 149 } catch ( Exception e) {149 } catch (IllegalArgumentException e) { 150 150 Main.error(tr("Error reading bookmark entry: %s", e.getMessage())); 151 151 } -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r10179 r10212 144 144 try { 145 145 tpDownloadAreaSelectors.setSelectedIndex(Main.pref.getInteger("download.tab", 0)); 146 } catch ( Exception ex) {146 } catch (IndexOutOfBoundsException ex) { 147 147 Main.pref.putInteger("download.tab", 0); 148 148 } -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r9972 r10212 41 41 import javax.swing.table.TableCellRenderer; 42 42 import javax.swing.table.TableColumn; 43 import javax.xml.parsers.ParserConfigurationException; 43 44 44 45 import org.openstreetmap.josm.Main; … … 396 397 }); 397 398 } 398 } catch ( Exception e) {399 } catch (IOException | ParserConfigurationException e) { 399 400 if (!canceled) { 400 401 OsmTransferException ex = new OsmTransferException(e); -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r10210 r10212 16 16 import java.awt.event.WindowEvent; 17 17 import java.io.BufferedReader; 18 import java.io.IOException; 18 19 import java.io.InputStreamReader; 19 20 import java.io.StringReader; … … 155 156 css.append('\n'); 156 157 } 157 } catch ( Exception e) {158 } catch (IOException e) { 158 159 Main.error(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString())); 159 160 Main.error(e); … … 239 240 try { 240 241 help.getEditorKit().read(new StringReader(content), document, 0); 241 } catch ( Exception e) {242 } catch (IOException | BadLocationException e) { 242 243 Main.error(e); 243 244 } … … 376 377 history.setCurrentUrl(url); 377 378 this.url = url; 378 } catch ( Exception e) {379 } catch (HelpContentReaderException e) { 379 380 Main.warn(e); 380 381 HelpAwareOptionPane.showOptionDialog( -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r10173 r10212 211 211 }); 212 212 } 213 } catch (final Exception e) {213 } catch (final RuntimeException e) { 214 214 BugReportExceptionHandler.handleException(e); 215 215 } -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r10210 r10212 143 143 try { 144 144 HistoryOsmPrimitive.forOsmPrimitive(primitive); 145 } catch ( Exception ign) {145 } catch (IllegalArgumentException ign) { 146 146 return false; 147 147 } -
trunk/src/org/openstreetmap/josm/gui/io/AbstractPrimitiveTask.java
r10129 r10212 113 113 114 114 loadIncompleteNodes(); 115 } catch ( Exception e) {115 } catch (OsmTransferException e) { 116 116 if (canceled) 117 117 return; -
trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetTask.java
r9078 r10212 80 80 closedChangesets.add(cs); 81 81 } 82 } catch ( Exception e) {82 } catch (OsmTransferException e) { 83 83 if (canceled) 84 84 return; -
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r10035 r10212 154 154 getProgressMonitor().createSubTaskMonitor(1, false /* not internal */) 155 155 ); 156 } catch ( Exception e) {156 } catch (OsmTransferException e) { 157 157 if (canceled) 158 158 return; -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerTask.java
r9078 r10212 56 56 layerInfo.getLayer().onPostSaveToFile(); 57 57 } 58 } catch ( Exception e) {58 } catch (RuntimeException e) { 59 59 Main.error(e); 60 60 setLastException(e); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r10190 r10212 21 21 import java.util.List; 22 22 import java.util.concurrent.CancellationException; 23 import java.util.concurrent.ExecutionException; 23 24 import java.util.concurrent.ExecutorService; 24 25 import java.util.concurrent.Executors; … … 496 497 } catch (CancellationException e) { 497 498 model.setUploadState(layer, UploadOrSaveState.CANCELED); 498 } catch ( Exception e) {499 } catch (InterruptedException | ExecutionException e) { 499 500 Main.error(e); 500 501 model.setUploadState(layer, UploadOrSaveState.FAILED); … … 537 538 } catch (CancellationException e) { 538 539 model.setSaveState(layerInfo.getLayer(), UploadOrSaveState.CANCELED); 539 } catch ( Exception e) {540 } catch (InterruptedException | ExecutionException e) { 540 541 Main.error(e); 541 542 model.setSaveState(layerInfo.getLayer(), UploadOrSaveState.FAILED); -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r9543 r10212 137 137 } 138 138 } 139 } catch ( Exception sxe) {139 } catch (OsmTransferException sxe) { 140 140 if (isCanceled()) { 141 141 Main.info("Ignoring exception caught because upload is canceled. Exception is: " + sxe); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r10209 r10212 465 465 public void valueChanged(ListSelectionEvent arg0) { 466 466 int index = imgList.getSelectedIndex(); 467 Integer orientation = null; 468 try { 469 orientation = ExifReader.readOrientation(yLayer.data.get(index).getFile()); 470 } catch (Exception e) { 471 Main.warn(e); 472 } 467 Integer orientation = ExifReader.readOrientation(yLayer.data.get(index).getFile()); 473 468 imgDisp.setImage(yLayer.data.get(index).getFile(), orientation); 474 469 Date date = yLayer.data.get(index).getExifTime(); … … 500 495 File sel = fc.getSelectedFile(); 501 496 502 Integer orientation = null; 503 try { 504 orientation = ExifReader.readOrientation(sel); 505 } catch (Exception e) { 506 Main.warn(e); 507 } 497 Integer orientation = ExifReader.readOrientation(sel); 508 498 imgDisp.setImage(sel, orientation); 509 499 510 Date date = null; 511 try { 512 date = ExifReader.readTime(sel); 513 } catch (Exception e) { 514 Main.warn(e); 515 } 500 Date date = ExifReader.readTime(sel); 516 501 if (date != null) { 517 502 lbExifTime.setText(DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM).format(date)); … … 967 952 final long deciSeconds = timezoneOffsetPair.b.getMilliseconds() / 100; 968 953 sldSeconds.setValue((int) (deciSeconds % 60)); 969 } catch ( Exception e) {954 } catch (RuntimeException e) { 970 955 JOptionPane.showMessageDialog(Main.parent, 971 956 tr("An error occurred while trying to match the photos to the GPX track." … … 1015 1000 for (GpxTrackSegment segment : trk.getSegments()) { 1016 1001 for (WayPoint curWp : segment.getWayPoints()) { 1017 try { 1018 final Date parsedTime = curWp.setTimeFromAttribute(); 1019 if (parsedTime != null) { 1020 firstGPXDate = parsedTime.getTime(); 1021 break outer; 1022 } 1023 } catch (Exception e) { 1024 Main.warn(e); 1002 final Date parsedTime = curWp.setTimeFromAttribute(); 1003 if (parsedTime != null) { 1004 firstGPXDate = parsedTime.getTime(); 1005 break outer; 1025 1006 } 1026 1007 } … … 1150 1131 1151 1132 for (WayPoint curWp : segment.getWayPoints()) { 1152 try { 1153 final Date parsedTime = curWp.setTimeFromAttribute(); 1154 if (parsedTime != null) { 1155 final long curWpTime = parsedTime.getTime() + offset; 1156 ret += matchPoints(images, prevWp, prevWpTime, curWp, curWpTime, offset); 1157 1158 prevWp = curWp; 1159 prevWpTime = curWpTime; 1160 continue; 1161 } 1162 } catch (Exception e) { 1163 Main.warn(e); 1133 final Date parsedTime = curWp.setTimeFromAttribute(); 1134 if (parsedTime != null) { 1135 final long curWpTime = parsedTime.getTime() + offset; 1136 ret += matchPoints(images, prevWp, prevWpTime, curWp, curWpTime, offset); 1137 1138 prevWp = curWp; 1139 prevWpTime = curWpTime; 1140 continue; 1164 1141 } 1165 1142 prevWp = null; -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r9383 r10212 492 492 // default is K (km/h) 493 493 setSpeed(speed); 494 } catch ( Exception ex) {494 } catch (MetadataException ex) { 495 495 if (Main.isDebugEnabled()) { 496 496 Main.debug(ex.getMessage()); … … 516 516 setPos(getExifCoor()); 517 517 518 } catch ( Exception ex) { // (other exceptions, e.g. #5271)518 } catch (MetadataException | IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271) 519 519 Main.error("Error reading EXIF from file: " + ex); 520 520 setExifCoor(null); … … 527 527 setExifImgDir(direction); 528 528 } 529 } catch ( Exception ex) { // (CompoundException andother exceptions, e.g. #5271)529 } catch (IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271) 530 530 if (Main.isDebugEnabled()) { 531 531 Main.debug(ex.getMessage()); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r10186 r10212 164 164 int i = Main.pref.getInteger("draw.rawgps.colors", specName(layerName), 0); 165 165 return ColorMode.fromIndex(i); 166 } catch ( Exception e) {166 } catch (IndexOutOfBoundsException e) { 167 167 Main.warn(e); 168 168 } -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java
r9779 r10212 51 51 public static PlayHeadMarker create() { 52 52 if (playHead == null) { 53 try { 54 playHead = new PlayHeadMarker(); 55 } catch (Exception ex) { 56 Main.error(ex); 57 return null; 58 } 53 playHead = new PlayHeadMarker(); 59 54 } 60 55 return playHead; -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/WebMarker.java
r8846 r10212 66 66 try { 67 67 setErroneous(path.isEmpty() || !new File(path).exists()); 68 } catch ( Exception e) {68 } catch (SecurityException e) { 69 69 Main.warn(e); 70 70 setErroneous(true); -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r10055 r10212 622 622 } catch (SecurityException ex) { 623 623 Main.error(ex); 624 } catch ( Exception ex) {624 } catch (RuntimeException ex) { 625 625 BugReportExceptionHandler.handleException(ex); 626 626 } finally { … … 636 636 } catch (SecurityException ex) { 637 637 Main.error(ex); 638 } catch ( Exception ex) {638 } catch (RuntimeException ex) { 639 639 // allow to change most settings even if e.g. a plugin fails 640 640 BugReportExceptionHandler.handleException(ex); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r10179 r10212 504 504 loader.realRun(); 505 505 return loader.sources; 506 } catch ( Exception ex) {506 } catch (IOException | SAXException | OsmTransferException ex) { 507 507 throw new RuntimeException(ex); 508 508 } -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r10179 r10212 575 575 movingComponent = ""; 576 576 return true; 577 } catch ( Exception e) {577 } catch (IOException | UnsupportedFlavorException e) { 578 578 Main.error(e); 579 579 } … … 594 594 } 595 595 } 596 } catch ( Exception e) {596 } catch (IOException | UnsupportedFlavorException e) { 597 597 Main.error(e); 598 598 } -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r10001 r10212 84 84 new UIManager.LookAndFeelInfo(((LookAndFeel) oquaqua).getName(), "ch.randelshofer.quaqua.QuaquaLookAndFeel") 85 85 ); 86 } catch ( Exception ex) {86 } catch (ReflectiveOperationException ex) { 87 87 // just debug, Quaqua may not even be installed... 88 88 Main.debug(ex.getMessage()); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java
r10179 r10212 36 36 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 37 37 import org.openstreetmap.josm.io.OsmApi; 38 import org.openstreetmap.josm.io.OsmApiInitializationException; 39 import org.openstreetmap.josm.io.OsmTransferCanceledException; 38 40 import org.openstreetmap.josm.tools.ImageProvider; 39 41 import org.openstreetmap.josm.tools.Utils; … … 157 159 try { 158 160 OsmApi.getOsmApi().initialize(null); 159 } catch ( Exception x) {161 } catch (OsmTransferCanceledException | OsmApiInitializationException x) { 160 162 Main.warn(x); 161 163 } -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetItem.java
r10001 r10212 118 118 try { 119 119 return Integer.valueOf(str); 120 } catch ( Exception e) {120 } catch (NumberFormatException e) { 121 121 if (Main.isTraceEnabled()) { 122 122 Main.trace(e.getMessage()); -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java
r9996 r10212 447 447 "public static String[] methodName()")); 448 448 } 449 } catch ( Exception e) {449 } catch (ReflectiveOperationException e) { 450 450 Main.error(tr("Broken tagging preset \"{0}-{1}\" - Java method given in ''values_from'' threw {2} ({3})", key, text, 451 451 e.getClass().getName(), e.getMessage())); -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractIdTextField.java
r8308 r10212 38 38 validator = klass.getConstructor(JTextComponent.class).newInstance(this); 39 39 } 40 } catch ( Exception e) {40 } catch (ReflectiveOperationException e) { 41 41 Main.error(e); 42 42 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.