perfsonar-dev - perfsonar: r4322 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Subject: perfsonar development work
List archive
perfsonar: r4322 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4322 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
- Date: Fri, 1 Aug 2008 08:15:42 -0400
Author: nina
Date: 2008-08-01 08:15:41 -0400 (Fri, 01 Aug 2008)
New Revision: 4322
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/EchoAction.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SelectOneEndpointAction.java
Log:
Fix for Bug542
https://bugzilla.perfsonar.net/show_bug.cgi?id=542
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/EchoAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/EchoAction.java
2008-08-01 09:50:40 UTC (rev 4321)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/EchoAction.java
2008-08-01 12:15:41 UTC (rev 4322)
@@ -84,6 +84,8 @@
if (request instanceof SmartMARequest)
((SmartMARequest) request).isReady();
+ for (int i= 0; i < endpoints.size(); i++)
+ endpoints.setEnabled(i, endpoints.get(i).isEnabled());
return null;
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SelectOneEndpointAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SelectOneEndpointAction.java
2008-08-01 09:50:40 UTC (rev 4321)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/SelectOneEndpointAction.java
2008-08-01 12:15:41 UTC (rev 4322)
@@ -22,6 +22,8 @@
import javax.swing.Icon;
+import org.perfsonar.perfsonarui.AbstractUserData;
+import org.perfsonar.perfsonarui.EchoSmartRequest;
import org.perfsonar.perfsonarui.plugins.MAEndpoint;
import org.perfsonar.perfsonarui.plugins.MAEndpointList;
import org.perfsonar.perfsonarui.ui.panels.MAEndpointsPanel;
@@ -64,6 +66,7 @@
endpointsPanel = null;
}
*/
+ /*
protected PSUIAction[] createActions() {
PSUIAction[] actions = new PSUIAction[3];
@@ -75,6 +78,32 @@
actions[2] = a;
return actions;
}
+ */
+ protected PSUIAction[] createActions() {
+ PSUIAction[] actions = new PSUIAction[5];
+
+ PSUIAction a ;
+ EchoSmartRequest echoRequest = new EchoSmartRequest();
+ echoRequest.setTimeout(10000);
+ a = new EchoAction(echoRequest, new AbstractUserData() {
+ @Override
+ public void makeQueryFromResponse() {
+ }
+ },endpoints);
+
+ actions[0] = a;
+
+ a = new FileEndpointsAction(endpoints,true);
+ actions[1] = a;
+ a = new FileEndpointsAction(endpoints,false);
+ actions[2] = a;
+ a = new NewEndpointAction(endpoints);
+ actions[3] = a;
+
+ a = new LSRetrieveEndpointsAction(endpoints);
+ actions[4] = a;
+ return actions;
+ }
@Override
protected MAEndpointsPanel createEndpointsPanel(PSUIAction[] actions) {
boolean selected = false;
- perfsonar: r4322 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions, svnlog, 08/01/2008
Archive powered by MHonArc 2.6.16.