Changeset 11222 in osm for applications
- Timestamp:
- 2008-10-14T20:08:00+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/NewIssueAction.java
r11161 r11222 87 87 88 88 private void addNewIssue(MouseEvent e) { 89 // get the user nickname 90 String nickname = Main.pref.get(ConfigKeys.OSB_NICKNAME); 91 if(nickname == null || nickname.length() == 0) { 92 nickname = JOptionPane.showInputDialog(Main.parent, Messages.translate(getClass(), "enter_nickname")); 93 if(nickname == null) { 94 nickname = "NoName"; 95 } else { 96 Main.pref.put(ConfigKeys.OSB_NICKNAME, nickname); 97 } 98 } 99 100 // get the comment 89 101 String result = JOptionPane.showInputDialog(Main.parent, 90 102 Messages.translate(getClass(), "question"), … … 94 106 if(result != null && result.length() > 0) { 95 107 try { 108 result = result.concat(" [").concat(nickname).concat("]"); 96 109 Node n = newAction.execute(e.getPoint(), result); 97 110 plugin.getDataSet().addPrimitive(n);
Note:
See TracChangeset
for help on using the changeset viewer.