Changeset 5827 in josm for trunk/src/org
- Timestamp:
- 2013-04-05T01:24:03+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r5050 r5827 6 6 import java.awt.Component; 7 7 import java.awt.GridBagLayout; 8 import java.io.ByteArrayOutputStream; 8 9 import java.io.PrintWriter; 9 10 import java.io.StringWriter; 10 11 import java.net.URL; 11 12 import java.nio.ByteBuffer; 13 import java.util.zip.GZIPOutputStream; 12 14 13 15 import javax.swing.JCheckBox; … … 118 120 urltext += "...<snip>...\n"; 119 121 } 122 123 ByteArrayOutputStream out = new ByteArrayOutputStream(); 124 GZIPOutputStream gzip = new GZIPOutputStream(out); 125 gzip.write(urltext.getBytes("UTF-8")); 126 gzip.close(); 120 127 121 128 URL url = new URL("http://josm.openstreetmap.de/josmticket?" + 122 " tdata="+Base64.encode(ByteBuffer.wrap(urltext.getBytes("UTF8")), true));129 "gdata="+Base64.encode(ByteBuffer.wrap(out.toByteArray()), true)); 123 130 124 131 JPanel p = new JPanel(new GridBagLayout()); … … 126 133 tr("You have encountered an error in JOSM. Before you file a bug report " + 127 134 "make sure you have updated to the latest version of JOSM here:")), GBC.eol()); 128 p.add(new UrlLabel("http://josm.openstreetmap.de /#Download",2), GBC.eop().insets(8,0,0,0));135 p.add(new UrlLabel("http://josm.openstreetmap.de",2), GBC.eop().insets(8,0,0,0)); 129 136 p.add(new JMultilineLabel( 130 137 tr("You should also update your plugins. If neither of those help please " +
Note:
See TracChangeset
for help on using the changeset viewer.