Changeset 3346 in josm
- Timestamp:
- 2010-06-27T10:57:00+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Filters.java
r3300 r3346 64 64 * (but hides them only if they are not used by any unfiltered way). 65 65 */ 66 public void executeFilters() {66 public void executeFilters() { 67 67 DataSet ds = Main.main.getCurrentDataSet(); 68 68 if (ds == null) … … 248 248 249 249 Main.map.mapView.repaint(); 250 Main.map.filterDialog.updateDialogHeader(); 250 251 } 251 252 -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r3300 r3346 18 18 import javax.swing.JTable; 19 19 import javax.swing.ListSelectionModel; 20 import javax.swing.event.TableModelEvent; 21 import javax.swing.event.TableModelListener; 20 import javax.swing.SwingUtilities; 22 21 import javax.swing.table.DefaultTableCellRenderer; 23 22 import javax.swing.table.JTableHeader; … … 41 40 * @author Petr_Dlouhý 42 41 */ 43 public class FilterDialog extends ToggleDialog implements Listener , TableModelListener{42 public class FilterDialog extends ToggleDialog implements Listener { 44 43 45 44 private JTable userTable; … … 162 161 }; 163 162 164 filters.addTableModelListener(this);165 166 163 userTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 167 164 … … 178 175 userTable.setDefaultRenderer(Boolean.class, new BooleanRenderer()); 179 176 userTable.setDefaultRenderer(String.class, new StringRenderer()); 180 181 tableChanged(null);182 177 183 178 pnl.add(new JScrollPane(userTable), BorderLayout.CENTER); … … 213 208 } 214 209 215 public void tableChanged(TableModelEvent e){ 216 setTitle(tr("Filter Hidden:{0} Disabled:{1}", filters.disabledAndHiddenCount, filters.disabledCount)); 210 public void updateDialogHeader() { 211 SwingUtilities.invokeLater(new Runnable() { 212 public void run() { 213 setTitle(tr("Filter Hidden:{0} Disabled:{1}", filters.disabledAndHiddenCount, filters.disabledCount)); 214 } 215 }); 217 216 } 218 217
Note:
See TracChangeset
for help on using the changeset viewer.