Ignore:
Timestamp:
2009-02-16T15:14:34+01:00 (16 years ago)
Author:
stoecker
Message:

applied patch #2185 by bruce89

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r1326 r1415  
    1010import java.awt.datatransfer.StringSelection;
    1111import java.awt.datatransfer.Transferable;
    12 import java.io.BufferedReader;
    13 import java.io.File;
    14 import java.io.InputStreamReader;
    1512import java.io.PrintWriter;
    1613import java.io.StringWriter;
    17 import java.net.URL;
    18 import java.text.DateFormat;
    19 import java.text.SimpleDateFormat;
    20 import java.util.Arrays;
    21 import java.util.Date;
    22 import java.util.LinkedList;
    2314
    2415import javax.swing.JLabel;
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r1195 r1415  
    4545        //System.out.println("Going to handle method "+method+" (short: "+method.getName()+") with event "+args[0]);
    4646        if (method.getName().equals("handleQuit")) {
    47             handled = !Main.main.breakBecauseUnsavedChanges();
     47            handled = !Main.breakBecauseUnsavedChanges();
    4848        } else if (method.getName().equals("handleAbout")) {
    4949            Main.main.menu.about.actionPerformed(null);
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r1169 r1415  
    22package org.openstreetmap.josm.tools;
    33
    4 import static org.openstreetmap.josm.tools.I18n.tr;
    54import org.openstreetmap.josm.tools.Shortcut;
    65import org.openstreetmap.josm.tools.PlatformHookUnixoid;
  • trunk/src/org/openstreetmap/josm/tools/PresetTextComparator.java

    r1402 r1415  
    55import javax.swing.JMenuItem;
    66
    7 public class PresetTextComparator implements Comparator {
     7public class PresetTextComparator implements Comparator<JMenuItem> {
    88        //TODO add error checking and stuff
    9         public int compare(Object arg0, Object arg1) {
    10                 return ((JMenuItem)arg0).getText().compareTo(((JMenuItem)arg1).getText());
     9        public int compare(JMenuItem arg0, JMenuItem arg1) {
     10                return arg0.getText().compareTo(arg1.getText());
    1111        }
    1212
  • trunk/src/org/openstreetmap/josm/tools/Shortcut.java

    r1182 r1415  
    260260    public static final int GROUPS_ALT2 = GROUP__MAX * 2;
    261261
    262     // safely read a shortcut from the preferences
    263     private static String[] getConfigStringArray(String key) {
    264         String s = Main.pref.get(key, null);
    265         if (s == null || s.equals("null") || s.equals(""))
    266             return null;
    267         return s.split(";");
    268     }
    269 
    270262    // bootstrap
    271263    private static boolean initdone = false;
Note: See TracChangeset for help on using the changeset viewer.