perfsonar-dev - perfsonar: r5429 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r5429 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa
- Date: Wed, 23 Dec 2009 05:26:07 -0500
Author: rade
Date: 2009-12-23 05:26:07 -0500 (Wed, 23 Dec 2009)
New Revision: 5429
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/AbstractSetupDataRequestAction.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMAResponse.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMATab.java
Log:
RESOLVED - bug 850: Entering router's name in Options window
https://bugzilla.perfsonar.net/show_bug.cgi?id=850
Added error dialog pop-up in case of an error during request
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/AbstractSetupDataRequestAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/AbstractSetupDataRequestAction.java
2009-12-22 13:28:46 UTC (rev 5428)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/AbstractSetupDataRequestAction.java
2009-12-23 10:26:07 UTC (rev 5429)
@@ -73,6 +73,7 @@
public AbstractSetupDataRequestAction(IPerfsonarRequest request,
IPerfsonarResponse responseProcessor, IUserData userData, String name, Icon
icon, String group) {
super(request, userData, name, icon, group);
setResponseProcessor(responseProcessor);
+ ((FlowsaMAResponse) responseProcessor).setFrame(frame);
putValue(SHORT_DESCRIPTION, "Run's a query");
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMAResponse.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMAResponse.java
2009-12-22 13:28:46 UTC (rev 5428)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMAResponse.java
2009-12-23 10:26:07 UTC (rev 5429)
@@ -7,6 +7,7 @@
package org.perfsonar.perfsonarui.flowsa;
+import java.awt.Component;
import java.awt.EventQueue;
import java.text.DateFormat;
import java.text.ParseException;
@@ -41,6 +42,8 @@
protected FlowsaMAUserData userData;
+ private Component frame;
+
public FlowsaMAResponse(FlowsaMAUserData userData) {
super();
this.userData = userData;
@@ -48,8 +51,12 @@
@Override
public synchronized void callException(PerfsonarResponseEvent e) {
+ super.callException(e);
logger.debug("response.callException");
userData.setResponse(AbstractUserData.DOCUMENT_RESPONSE,
e.getException().toString());
+ JOptionPane.showMessageDialog(frame,
+ e.getException().getMessage() + "\nThere
seems to be a problem with the connection\n" +
+ "to the device. Please check if the URL is
valid.", "Error", JOptionPane.ERROR_MESSAGE);
logger.error(e.getException());
}
@@ -261,4 +268,8 @@
return value==null ? null : value.getNodeValue();
}
+ void setFrame(Component frame) {
+ this.frame = frame;
+ }
+
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMATab.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMATab.java
2009-12-22 13:28:46 UTC (rev 5428)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowsaMATab.java
2009-12-23 10:26:07 UTC (rev 5429)
@@ -220,7 +220,7 @@
@Override
public PerfsonarRequestAction createDataRequestAction() {
- FlowsaMAResponse processor = new FlowsaMAResponse(getUserData());
+ FlowsaMAResponse processor = new
FlowsaMAResponse(getUserData());
return new
AbstractSetupDataRequestAction(request,processor,userData,"Query",null,defaultGroupQuery)
{
private static final long serialVersionUID = 1L;
@Override
- perfsonar: r5429 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa, svnlog, 12/23/2009
Archive powered by MHonArc 2.6.16.