- Timestamp:
- 2014-02-07T11:42:34+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r6795 r6824 74 74 public String name_context; 75 75 public String locale_name; 76 public boolean preset_name_label; 76 77 public final static String OPTIONAL_TOOLTIP_TEXT = "Optional tooltip text"; 77 78 … … 216 217 } 217 218 p.add(pp, GBC.eol()); 219 } 220 if (preset_name_label) { 221 TaggingPresetItems.Label.addLabel(p,/*I18n: {0} is preset name */tr("Edit {0}", getName())); 218 222 } 219 223 -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java
r6798 r6824 354 354 public boolean addToPanel(JPanel p, Collection<OsmPrimitive> sel, boolean presetInitiallyMatches) { 355 355 initializeLocaleText(null); 356 p.add(new JLabel(locale_text), GBC.eol());356 addLabel(p, locale_text); 357 357 return false; 358 } 359 360 public static void addLabel(JPanel p, String label) { 361 p.add(new JLabel(label), GBC.eol()); 358 362 } 359 363 }
Note:
See TracChangeset
for help on using the changeset viewer.