Changeset 399 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2007-10-16T23:50:45+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r397 r399 140 140 141 141 add(presetsMenu); 142 presetsMenu.setMnemonic('P'); 142 143 143 144 JMenuItem check = new JMenuItem("DEBUG: Check Dataset"); -
trunk/src/org/openstreetmap/josm/gui/preferences/TaggingPresetPreference.java
r397 r399 121 121 public static void initialize() { 122 122 taggingPresets = TaggingPreset.readFromPreferences(); 123 for (final TaggingPreset p : taggingPresets) { 124 if (p.getValue(Action.NAME).equals(" ")) { 125 Main.main.menu.presetsMenu.add(new JSeparator()); 126 } else { 127 Main.main.menu.presetsMenu.add(new JMenuItem(p)); 128 } 129 } 123 if (taggingPresets.isEmpty()) { 124 Main.main.menu.presetsMenu.setVisible(false); 125 } 126 else 127 { 128 for (final TaggingPreset p : taggingPresets) { 129 if (p.getValue(Action.NAME).equals(" ")) { 130 Main.main.menu.presetsMenu.add(new JSeparator()); 131 } else { 132 Main.main.menu.presetsMenu.add(new JMenuItem(p)); 133 } 134 } 135 } 130 136 } 131 137 }
Note:
See TracChangeset
for help on using the changeset viewer.