Changeset 14471 in osm for applications/editors/josm/plugins/openstreetbugs
- Timestamp:
- 2009-04-11T21:42:09+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/CloseIssueAction.java
r13497 r14471 31 31 32 32 import java.awt.event.ActionEvent; 33 import java.io.IOException;34 33 35 34 import javax.swing.JOptionPane; … … 49 48 50 49 @Override 51 protected void doActionPerformed(ActionEvent e) throws IOException {52 int result= JOptionPane.showConfirmDialog(Main.parent,50 protected void doActionPerformed(ActionEvent e) throws Exception { 51 int closeOk = JOptionPane.showConfirmDialog(Main.parent, 53 52 tr("Really mark this issue as ''done''?"), 54 53 tr("Really close?"), 55 54 JOptionPane.YES_NO_OPTION); 56 55 57 if(result == JOptionPane.YES_OPTION) { 56 if(closeOk == JOptionPane.YES_OPTION) { 57 int addComment = JOptionPane.showConfirmDialog(Main.parent, 58 tr("Do you want to add a comment?"), 59 tr("Add comment?"), 60 JOptionPane.YES_NO_OPTION); 61 if(addComment == JOptionPane.YES_OPTION) { 62 new AddCommentAction().doActionPerformed(new ActionEvent(this, 0, "add_comment")); 63 } 58 64 closeAction.execute(getSelectedNode()); 59 65 }
Note:
See TracChangeset
for help on using the changeset viewer.