Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58FC317865 for ; Thu, 26 Mar 2015 17:08:01 +0000 (UTC) Received: (qmail 29434 invoked by uid 500); 26 Mar 2015 17:08:01 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 29283 invoked by uid 500); 26 Mar 2015 17:08:01 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 27902 invoked by uid 99); 26 Mar 2015 17:08:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 17:08:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4AABAE2F42; Thu, 26 Mar 2015 17:08:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shameera@apache.org To: commits@airavata.apache.org Date: Thu, 26 Mar 2015 17:08:28 -0000 Message-Id: <056b1f88c9294d1f8b16b47202c9a401@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [29/50] [abbrv] airavata git commit: Show error message when there is no compute resources found. 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 Authored: Mon Mar 9 20:44:35 2015 -0400 Committer: shamrath 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();