Changeset 35336 in osm for applications/editors/josm
- Timestamp:
- 2020-02-21T15:09:24+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/indoorhelper/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java
r35312 r35336 288 288 toolboxView = new ToolBoxView(); 289 289 290 // set preference if no value ist set already 290 291 setPluginPreferences(true); 291 292 … … 473 474 474 475 /** 475 * Enables or disables the preferences for the mapcss-style. 476 * 477 * @param enabled Activates or disables the settings. 476 * Enables or disables the preferences for the mapcss-style if no preference is set already. 477 * Else uses set preference. 478 * 479 * @param enabled Activates or disables the settings (if no preference set). 478 480 */ 479 481 private static void setPluginPreferences(boolean enabled) { … … 488 490 489 491 List<Map<String, String>> styleMapsNew = new ArrayList<>(); 492 490 493 if (!styleMaps.isEmpty()) { 491 494 styleMapsNew.addAll(styleMaps); 492 495 } 496 493 497 for (Map<String, String> map : styleMapsNew) { 494 498 if (map.containsValue(tr("Indoor"))) { 499 // find saved preference value 500 enabled = map.containsValue(tr("true")); 495 501 styleMapsNew.remove(map); 496 502 break; 497 503 } 498 504 } 505 499 506 Map<String, String> indoorMapPaint = new HashMap<>(); 500 507 indoorMapPaint.put("title", tr("Indoor")); -
applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java
r35312 r35336 134 134 135 135 //---- helpButton ---- 136 helpButton.setText(tr(" <html><b>?</strong></b>"));136 helpButton.setText(tr("help")); 137 137 helpButton.setToolTipText(tr("Show Help-Browser.")); 138 138 helpButton.setBackground(Color.LIGHT_GRAY);
Note:
See TracChangeset
for help on using the changeset viewer.