Changeset 10611 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
- Timestamp:
- 2016-07-23T18:46:45+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r10593 r10611 593 593 final Command fixCommand = error.getFix(); 594 594 if (fixCommand != null) { 595 SwingUtilities.invokeAndWait(new Runnable() { 596 @Override 597 public void run() { 598 Main.main.undoRedo.addNoRedraw(fixCommand); 599 } 600 }); 595 SwingUtilities.invokeAndWait(() -> Main.main.undoRedo.addNoRedraw(fixCommand)); 601 596 } 602 597 // It is wanted to ignore an error if it said fixable, even if fixCommand was null … … 614 609 final DataSet ds = Main.getLayerManager().getEditDataSet(); 615 610 int i = 0; 616 SwingUtilities.invokeAndWait(new Runnable() { 617 @Override 618 public void run() { 619 ds.beginUpdate(); 620 } 621 }); 611 SwingUtilities.invokeAndWait(ds::beginUpdate); 622 612 try { 623 613 for (TestError error: testErrors) { … … 630 620 } 631 621 } finally { 632 SwingUtilities.invokeAndWait(new Runnable() { 633 @Override 634 public void run() { 635 ds.endUpdate(); 636 } 637 }); 622 SwingUtilities.invokeAndWait(ds::endUpdate); 638 623 } 639 624 monitor.subTask(tr("Updating map ...")); 640 SwingUtilities.invokeAndWait(new Runnable() { 641 @Override 642 public void run() { 643 Main.main.undoRedo.afterAdd(); 644 Main.map.repaint(); 645 tree.resetErrors(); 646 ds.fireSelectionChanged(); 647 } 625 SwingUtilities.invokeAndWait(() -> { 626 Main.main.undoRedo.afterAdd(); 627 Main.map.repaint(); 628 tree.resetErrors(); 629 ds.fireSelectionChanged(); 648 630 }); 649 631 } catch (InterruptedException | InvocationTargetException e) { 650 // FIXME: signature of realRun should have a generic checked exception we 651 // could throw here 632 // FIXME: signature of realRun should have a generic checked exception we could throw here 652 633 throw new RuntimeException(e); 653 634 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.