Changeset 1349 in josm
- Timestamp:
- 2009-01-31T14:17:49+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r1346 r1349 118 118 { 119 119 x.printStackTrace(); // SAXException does not chain correctly 120 throw new SAXException(tr("Null PointerException, possibly some missing tags."), x);120 throw new SAXException(tr("Null pointer exception, possibly some missing tags."), x); 121 121 } 122 122 } -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r1343 r1349 101 101 */ 102 102 private Map<String, Action> actions = new HashMap<String, Action>(); 103 private Map<String, Action> regactions = new HashMap<String, Action>(); 103 104 104 105 private DefaultListModel selected = new DefaultListModel(); … … 383 384 rootActionsNode.removeAllChildren(); 384 385 loadAction(rootActionsNode, Main.main.menu); 386 for(Map.Entry<String, Action> a : regactions.entrySet()) 387 { 388 if(actions.get(a.getKey()) == null) 389 rootActionsNode.add(new DefaultMutableTreeNode(a.getValue())); 390 } 385 391 rootActionsNode.add(new DefaultMutableTreeNode(null)); 386 392 actionsTree.updateUI(); … … 391 397 private static final String[] deftoolbar = {"open", "save", "exportgpx", "|", 392 398 "download", "upload", "|", "undo", "redo", "|", "preference"}; 399 393 400 private Collection<String> getToolString() { 394 401 return Main.pref.getCollection("toolbar", Arrays.asList(deftoolbar)); … … 425 432 */ 426 433 public Action register(Action action) { 427 actions.put((String) action.getValue("toolbar"), action);434 regactions.put((String) action.getValue("toolbar"), action); 428 435 return action; 429 436 } -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r1345 r1349 377 377 if(locale_text == null) 378 378 locale_text = text == null ? tr("More information about this feature") : tr(text); 379 JButton b = new JButton(locale_text);380 b.addActionListener(new ActionListener(){381 public void actionPerformed(ActionEvent e) {382 OpenBrowser.displayUrl(locale_href != null ? locale_href : href);383 }384 });385 379 p.add(new UrlLabel(locale_href, locale_text), GBC.eol().anchor(GBC.WEST)); 386 380 }
Note:
See TracChangeset
for help on using the changeset viewer.