Changeset 1415 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2009-02-16T15:14:34+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r1326 r1415 10 10 import java.awt.datatransfer.StringSelection; 11 11 import java.awt.datatransfer.Transferable; 12 import java.io.BufferedReader;13 import java.io.File;14 import java.io.InputStreamReader;15 12 import java.io.PrintWriter; 16 13 import 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;23 14 24 15 import javax.swing.JLabel; -
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r1195 r1415 45 45 //System.out.println("Going to handle method "+method+" (short: "+method.getName()+") with event "+args[0]); 46 46 if (method.getName().equals("handleQuit")) { 47 handled = !Main. main.breakBecauseUnsavedChanges();47 handled = !Main.breakBecauseUnsavedChanges(); 48 48 } else if (method.getName().equals("handleAbout")) { 49 49 Main.main.menu.about.actionPerformed(null); -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r1169 r1415 2 2 package org.openstreetmap.josm.tools; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 4 import org.openstreetmap.josm.tools.Shortcut; 6 5 import org.openstreetmap.josm.tools.PlatformHookUnixoid; -
trunk/src/org/openstreetmap/josm/tools/PresetTextComparator.java
r1402 r1415 5 5 import javax.swing.JMenuItem; 6 6 7 public class PresetTextComparator implements Comparator {7 public class PresetTextComparator implements Comparator<JMenuItem> { 8 8 //TODO add error checking and stuff 9 public int compare( Object arg0, Objectarg1) {10 return ((JMenuItem)arg0).getText().compareTo(((JMenuItem)arg1).getText());9 public int compare(JMenuItem arg0, JMenuItem arg1) { 10 return arg0.getText().compareTo(arg1.getText()); 11 11 } 12 12 -
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r1182 r1415 260 260 public static final int GROUPS_ALT2 = GROUP__MAX * 2; 261 261 262 // safely read a shortcut from the preferences263 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 270 262 // bootstrap 271 263 private static boolean initdone = false;
Note:
See TracChangeset
for help on using the changeset viewer.