Last change
on this file since 3486 was 3385, checked in by jttt, 14 years ago |
Fix warnings
|
-
Property svn:eol-style
set to
native
|
File size:
375 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.tools;
|
---|
2 |
|
---|
3 | import java.io.Serializable;
|
---|
4 | import java.util.Comparator;
|
---|
5 |
|
---|
6 | import javax.swing.JMenuItem;
|
---|
7 |
|
---|
8 | public class PresetTextComparator implements Comparator<JMenuItem>, Serializable {
|
---|
9 | //TODO add error checking and stuff
|
---|
10 | public int compare(JMenuItem arg0, JMenuItem arg1) {
|
---|
11 | return arg0.getText().compareTo(arg1.getText());
|
---|
12 | }
|
---|
13 |
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.