Changeset 1777 in josm
- Timestamp:
- 2009-07-12T14:38:43+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/MapPaintPreference.java
r1743 r1777 37 37 styleCombo.addItem("standard"); 38 38 39 sources = new StyleSources("mappaint.style.sources", "mappaint.icon.sources", 40 "http://josm.openstreetmap.de/styles", false, tr("Map Paint Styles")); 41 39 42 String style = Main.pref.get("mappaint.style", "standard"); 43 if(!style.equals("standard")) 44 styleCombo.addItem(style); 45 40 46 styleCombo.setEditable(true); 41 47 for (int i = 0; i < styleCombo.getItemCount(); ++i) { 42 if ( styleCombo.getItemAt(i).getClass().getName().equals(style)) {48 if (((String)styleCombo.getItemAt(i)).equals(style)) { 43 49 styleCombo.setSelectedIndex(i); 44 50 break; … … 56 62 panel.add(styleCombo, GBC.eop().fill(GBC.HORIZONTAL).insets(0,0,5,0)); 57 63 58 sources = new StyleSources("mappaint.style.sources", "mappaint.icon.sources",59 "http://josm.openstreetmap.de/styles", false, tr("Map Paint Styles"));60 64 panel.add(sources, GBC.eol().fill(GBC.BOTH)); 61 65 gui.mapcontent.addTab(tr("Map Paint Styles"), scrollpane);
Note:
See TracChangeset
for help on using the changeset viewer.