Changeset 22688 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2010-08-19T07:36:32+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r22004 r22688 84 84 public ValidatorDialog(OSMValidatorPlugin plugin) { 85 85 super(tr("Validation errors"), "validator", tr("Open the validation window."), 86 Shortcut.registerShortcut("subwindow:validator", tr("Toggle: {0}", tr("Validation errors")), 87 KeyEvent.VK_V, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 150); 86 Shortcut.registerShortcut("subwindow:validator", tr("Toggle: {0}", tr("Validation errors")), 87 KeyEvent.VK_V, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 150); 88 88 89 89 this.plugin = plugin; … … 123 123 } 124 124 add(buttonPanel, BorderLayout.SOUTH); 125 DataSet.selListeners.add(this); 125 126 } 127 128 @Override 129 public void showNotify() { 130 DataSet.addSelectionListener(this); 131 DataSet ds = Main.main.getCurrentDataSet(); 132 if (ds != null) { 133 updateSelection(ds.getSelected()); 134 } 135 } 136 137 @Override 138 public void hideNotify() { 139 DataSet.removeSelectionListener(this); 126 140 } 127 141 … … 447 461 } 448 462 449 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {463 public void updateSelection(Collection<? extends OsmPrimitive> newSelection) { 450 464 if (!Main.pref.getBoolean(PreferenceEditor.PREF_FILTER_BY_SELECTION, false)) 451 465 return; … … 456 470 } 457 471 472 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 473 updateSelection(newSelection); 474 } 475 458 476 /** 459 477 * Task for fixing a collection of {@see TestError}s. Can be run asynchronously. … … 482 500 @Override 483 501 protected void realRun() throws SAXException, IOException, 484 502 OsmTransferException { 485 503 ProgressMonitor monitor = getProgressMonitor(); 486 504 try {
Note:
See TracChangeset
for help on using the changeset viewer.