Last change
on this file since 2602 was 2512, checked in by stoecker, 14 years ago |
i18n updated, fixed files to reduce problems when applying patches, fix #4017
|
File size:
332 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.tools;
|
---|
2 |
|
---|
3 | import java.util.Comparator;
|
---|
4 |
|
---|
5 | import javax.swing.JMenuItem;
|
---|
6 |
|
---|
7 | public class PresetTextComparator implements Comparator<JMenuItem> {
|
---|
8 | //TODO add error checking and stuff
|
---|
9 | public int compare(JMenuItem arg0, JMenuItem arg1) {
|
---|
10 | return arg0.getText().compareTo(arg1.getText());
|
---|
11 | }
|
---|
12 |
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.