airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject [29/50] [abbrv] airavata git commit: Show error message when there is no compute resources found.
Date Thu, 26 Mar 2015 17:08:28 GMT
Show error message when there is no compute resources found.


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/ad8e4826
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/ad8e4826
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/ad8e4826

Branch: refs/heads/master
Commit: ad8e482674b7c3523eed16b99b5d448dfb83f63c
Parents: 774b092
Author: shamrath <shameerainfo@gmail.com>
Authored: Mon Mar 9 20:44:35 2015 -0400
Committer: shamrath <shameerainfo@gmail.com>
Committed: Mon Mar 9 20:44:35 2015 -0400

----------------------------------------------------------------------
 .../xbaya/ui/experiment/WorkflowInterpreterLaunchWindow.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/ad8e4826/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/experiment/WorkflowInterpreterLaunchWindow.java
----------------------------------------------------------------------
diff --git a/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/experiment/WorkflowInterpreterLaunchWindow.java
b/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/experiment/WorkflowInterpreterLaunchWindow.java
index c0c6b45..3425a4f 100644
--- a/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/experiment/WorkflowInterpreterLaunchWindow.java
+++ b/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/experiment/WorkflowInterpreterLaunchWindow.java
@@ -151,6 +151,13 @@ public class WorkflowInterpreterLaunchWindow {
 
         try {
             hosts = airavataClient.getAllComputeResourceNames();
+            if (hosts.isEmpty()) {
+                JOptionPane.showMessageDialog(engine.getGUI().getFrame(),
+                        "No Compute Resources found",
+                        "Compute Resources",
+                        JOptionPane.ERROR_MESSAGE);
+                return;
+            }
         } catch (InvalidRequestException e2) {
             // TODO Auto-generated catch block
             e2.printStackTrace();


Mime
View raw message