Changeset 6977 in josm for trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
- Timestamp:
- 2014-04-15T00:43:24+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
r6973 r6977 75 75 // All downloaded primitives are put in a tmpLayer 76 76 tmpLayer = new OsmDataLayer(new DataSet(), OsmDataLayer.createNewName(), null); 77 //Main.main.addLayer(tmpLayer);78 77 } 79 78 … … 194 193 * Dialog for report a problem during download. 195 194 * @param errs Primitives involved 196 * @param TITLETitle of dialog197 * @param TEXTDetail message198 * @param LIST_LABELList of primitives description199 * @param msgType Type of message {@seeJOptionPane}195 * @param title Title of dialog 196 * @param text Detail message 197 * @param listLabel List of primitives description 198 * @param msgType Type of message, see {@link JOptionPane} 200 199 * @return The Dialog object 201 200 */ 202 201 private static ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs, 203 String TITLE, String TEXT, String LIST_LABEL, int msgType) {202 String title, String text, String listLabel, int msgType) { 204 203 JPanel p = new JPanel(new GridBagLayout()); 205 p.add(new HtmlPanel( TEXT), GBC.eop());206 if ( LIST_LABEL!= null) {207 JLabel missing = new JLabel( LIST_LABEL);204 p.add(new HtmlPanel(text), GBC.eop()); 205 if (listLabel != null) { 206 JLabel missing = new JLabel(listLabel); 208 207 missing.setFont(missing.getFont().deriveFont(Font.PLAIN)); 209 208 p.add(missing, GBC.eol()); … … 221 220 return new ExtendedDialog( 222 221 Main.parent, 223 TITLE,222 title, 224 223 new String[] { tr("Ok") }) 225 224 .setButtonIcons(new String[] { "ok" })
Note:
See TracChangeset
for help on using the changeset viewer.