Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2009-08-30T19:07:24+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 12 edited
-
AudioPlayer.java (modified) (2 diffs)
-
AudioUtil.java (modified) (1 diff)
-
BugReportExceptionHandler.java (modified) (4 diffs)
-
I18n.java (modified) (1 diff)
-
ImageProvider.java (modified) (2 diffs)
-
PlatformHook.java (modified) (1 diff)
-
PlatformHookOsx.java (modified) (1 diff)
-
PlatformHookUnixoid.java (modified) (1 diff)
-
PlatformHookWindows.java (modified) (1 diff)
-
Shortcut.java (modified) (2 diffs)
-
WikiReader.java (modified) (2 diffs)
-
XmlObjectParser.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r1865 r2017 15 15 16 16 import org.openstreetmap.josm.Main; 17 import org.openstreetmap.josm.gui.OptionPaneUtil;18 17 19 18 /** … … 340 339 341 340 public static void audioMalfunction(Exception ex) { 342 OptionPane Util.showMessageDialog(Main.parent,341 JOptionPane.showMessageDialog(Main.parent, 343 342 "<html><p>" + tr(ex.getMessage()) + "</p></html>", 344 343 tr("Error playing sound"), JOptionPane.ERROR_MESSAGE); -
trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
r1685 r2017 2 2 package org.openstreetmap.josm.tools; 3 3 4 import java.io. IOException;4 import java.io.File; 5 5 import java.net.URL; 6 import java.io.File;7 6 8 7 import javax.sound.sampled.AudioFormat; -
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r1882 r2017 21 21 import org.openstreetmap.josm.Main; 22 22 import org.openstreetmap.josm.actions.ShowStatusReportAction; 23 import org.openstreetmap.josm.gui.OptionPaneUtil;24 23 import org.openstreetmap.josm.plugins.PluginHandler; 25 24 … … 39 38 if (e instanceof OutOfMemoryError) { 40 39 // do not translate the string, as translation may raise an exception 41 OptionPane Util.showMessageDialog(Main.parent, "JOSM is out of memory. " +40 JOptionPane.showMessageDialog(Main.parent, "JOSM is out of memory. " + 42 41 "Strange things may happen.\nPlease restart JOSM with the -Xmx###M option,\n" + 43 42 "where ### is the the number of MB assigned to JOSM (e.g. 256).\n" + … … 53 52 54 53 Object[] options = new String[]{tr("Do nothing"), tr("Report Bug")}; 55 int answer = OptionPane Util.showOptionDialog(Main.parent, tr("An unexpected exception occurred.\n\n" +54 int answer = JOptionPane.showOptionDialog(Main.parent, tr("An unexpected exception occurred.\n\n" + 56 55 "This is always a coding error. If you are running the latest\n" + 57 56 "version of JOSM, please consider being kind and file a bug report."), 58 tr("Unexpected Exception"), JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE, 57 tr("Unexpected Exception"), JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE,null, 59 58 options, options[0]); 60 59 if (answer == 1) { … … 84 83 p.add(new JScrollPane(info), GBC.eop()); 85 84 86 OptionPane Util.showMessageDialog(Main.parent, p, tr("Warning"), JOptionPane.WARNING_MESSAGE);85 JOptionPane.showMessageDialog(Main.parent, p, tr("Warning"), JOptionPane.WARNING_MESSAGE); 87 86 } catch (Exception e1) { 88 87 e1.printStackTrace(); -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r1802 r2017 5 5 import java.util.Arrays; 6 6 import java.util.Comparator; 7 import java.util.LinkedList; 7 8 import java.util.Locale; 8 import java.util.LinkedList;9 9 import java.util.MissingResourceException; 10 10 import java.util.Vector; 11 11 12 import org.openstreetmap.josm.gui.MainApplication; 12 13 import org.xnap.commons.i18n.I18nFactory; -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r1879 r2017 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.tools; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.Component; … … 31 33 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 32 34 import org.openstreetmap.josm.io.MirroredInputStream; 33 import static org.openstreetmap.josm.tools.I18n.tr;34 35 35 36 /** -
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r1195 r2017 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.tools; 3 4 import org.openstreetmap.josm.tools.Shortcut;5 3 6 4 import java.io.IOException; -
trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java
r1842 r2017 11 11 12 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.actions.mapmode.SelectAction;14 13 15 14 /** -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r1195 r2017 2 2 package org.openstreetmap.josm.tools; 3 3 4 import org.openstreetmap.josm.tools.Shortcut;5 import org.openstreetmap.josm.Main;6 7 4 import java.awt.event.KeyEvent; 8 5 import java.io.IOException; 6 7 import org.openstreetmap.josm.Main; 9 8 10 9 /** -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r1415 r2017 2 2 package org.openstreetmap.josm.tools; 3 3 4 import org.openstreetmap.josm.tools.Shortcut;5 import org.openstreetmap.josm.tools.PlatformHookUnixoid;6 import org.openstreetmap.josm.Main;7 8 4 import java.awt.event.KeyEvent; 9 5 import java.io.IOException; 6 7 import org.openstreetmap.josm.Main; 10 8 11 9 /** -
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r1865 r2017 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 import org.openstreetmap.josm.Main;6 import org.openstreetmap.josm.gui.OptionPaneUtil;7 5 8 6 import java.awt.event.KeyEvent; 7 import java.util.Collection; 9 8 import java.util.HashMap; 10 9 import java.util.LinkedHashMap; 11 10 import java.util.Map; 12 import java.util.Collection; 11 13 12 import javax.swing.AbstractButton; 14 import javax.swing.KeyStroke;15 13 import javax.swing.JMenu; 16 14 import javax.swing.JOptionPane; 15 import javax.swing.KeyStroke; 16 17 import org.openstreetmap.josm.Main; 17 18 18 19 /** … … 444 445 // a lengthy warning message 445 446 private static void displayWarning(Shortcut conflictsWith, Shortcut potentialShortcut, String shortText, String longText) { 446 OptionPane Util.showMessageDialog(Main.parent,447 JOptionPane.showMessageDialog(Main.parent, 447 448 tr("Setting the keyboard shortcut ''{0}'' for the action ''{1}'' ({2}) failed\n"+ 448 449 "because the shortcut is already taken by the action ''{3}'' ({4}).\n\n", -
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r1879 r2017 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.tools; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.io.BufferedReader; … … 9 11 10 12 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.tools.LanguageInfo;12 13 import static org.openstreetmap.josm.tools.I18n.tr;14 13 15 14 /** -
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r1755 r2017 20 20 import org.xml.sax.SAXException; 21 21 import org.xml.sax.helpers.DefaultHandler; 22 23 import org.openstreetmap.josm.tools.LanguageInfo;24 22 25 23 /**
Note:
See TracChangeset
for help on using the changeset viewer.
