Changeset 8682 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
- Timestamp:
- 2015-08-22T21:43:53+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r8633 r8682 77 77 /** The select button */ 78 78 private SideButton selectButton; 79 /** The lookup button */ 80 private SideButton lookupButton; 79 81 80 82 private final JPopupMenu popupMenu = new JPopupMenu(); … … 114 116 selectButton.setEnabled(false); 115 117 buttons.add(selectButton); 118 119 lookupButton = new SideButton(new AbstractAction() { 120 { 121 putValue(NAME, tr("Lookup")); 122 putValue(SHORT_DESCRIPTION, tr("Looks up the the selected primitives in the error list.")); 123 putValue(SMALL_ICON, ImageProvider.get("dialogs", "search")); 124 } 125 126 @Override 127 public void actionPerformed(ActionEvent e) { 128 final DataSet ds = Main.main.getCurrentDataSet(); 129 if (ds == null) { 130 return; 131 } 132 tree.selectRelatedErrors(ds.getSelected()); 133 } 134 }); 135 136 buttons.add(lookupButton); 116 137 117 138 buttons.add(new SideButton(Main.main.validator.validateAction));
Note:
See TracChangeset
for help on using the changeset viewer.