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