perfsonar-dev - [GEANT/SA2/ps-java-services] r5516 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5516 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5516 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
- Date: Mon, 1 Mar 2010 15:31:48 GMT
Author: bren.nikolova
Date: 2010-03-01 15:31:48 +0000 (Mon, 01 Mar 2010)
New Revision: 5516
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
Log:
Fix for PSANALYSIS-62 : Now all changes are directly reflected in the data
structures and there isn't a copy to revert to when Cancel action is
performed. A solid redesign of the code will be needed in order to make this
work correctly. Meanwhile I remove the Cancel button, so that it doesn't
confuse the users.
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
2010-03-01 15:30:00 UTC (rev 5515)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SetOptionsAction.java
2010-03-01 15:31:48 UTC (rev 5516)
@@ -75,9 +75,10 @@
p = c[0];
p.setBorder(BorderFactory.createTitledBorder(c[0].toString()));
}
- if
(JOptionPane.showConfirmDialog(frame,p,getValue(Action.NAME).toString(),JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE)
- == JOptionPane.OK_OPTION)
+ if
(JOptionPane.showConfirmDialog(frame,p,getValue(Action.NAME).toString(),JOptionPane.DEFAULT_OPTION,JOptionPane.PLAIN_MESSAGE)
+ == JOptionPane.DEFAULT_OPTION){
confirm(c);
+ }
else
cancel(c);
@@ -98,4 +99,3 @@
}
-
- [GEANT/SA2/ps-java-services] r5516 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions, svn-noreply, 03/01/2010
Archive powered by MHonArc 2.6.16.