Changeset 11821 in josm for trunk/src/org/openstreetmap/josm/gui/NoteSortDialog.java
- Timestamp:
- 2017-04-01T23:27:46+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NoteSortDialog.java
r9078 r11821 15 15 import org.openstreetmap.josm.Main; 16 16 import org.openstreetmap.josm.data.notes.Note; 17 import org.openstreetmap.josm.data.osm.NoteData;18 17 19 18 /** … … 43 42 public void showSortDialog(Comparator<Note> currentSortMode) { 44 43 JLabel label = new JLabel(tr("Select note sorting method")); 45 if (currentSortMode == Note Data.DEFAULT_COMPARATOR) {44 if (currentSortMode == Note.DEFAULT_COMPARATOR) { 46 45 defaultSort.setSelected(true); 47 } else if (currentSortMode == Note Data.DATE_COMPARATOR) {46 } else if (currentSortMode == Note.DATE_COMPARATOR) { 48 47 dateSort.setSelected(true); 49 } else if (currentSortMode == Note Data.USER_COMPARATOR) {48 } else if (currentSortMode == Note.USER_COMPARATOR) { 50 49 userSort.setSelected(true); 51 } else if (currentSortMode == Note Data.LAST_ACTION_COMPARATOR) {50 } else if (currentSortMode == Note.LAST_ACTION_COMPARATOR) { 52 51 lastActionSort.setSelected(true); 53 52 } else { … … 77 76 public Comparator<Note> getSelectedComparator() { 78 77 if (dateSort.isSelected()) { 79 return Note Data.DATE_COMPARATOR;78 return Note.DATE_COMPARATOR; 80 79 } else if (userSort.isSelected()) { 81 return Note Data.USER_COMPARATOR;80 return Note.USER_COMPARATOR; 82 81 } else if (lastActionSort.isSelected()) { 83 return Note Data.LAST_ACTION_COMPARATOR;82 return Note.LAST_ACTION_COMPARATOR; 84 83 } else { 85 return Note Data.DEFAULT_COMPARATOR;84 return Note.DEFAULT_COMPARATOR; 86 85 } 87 86 }
Note:
See TracChangeset
for help on using the changeset viewer.