airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1513988 - /airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/ParameterNode.java
Date Wed, 14 Aug 2013 18:05:39 GMT
Author: samindaw
Date: Wed Aug 14 18:05:39 2013
New Revision: 1513988

URL: http://svn.apache.org/r1513988
Log:
adding browser open to context menu etc.

Modified:
    airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/ParameterNode.java

Modified: airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/ParameterNode.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/ParameterNode.java?rev=1513988&r1=1513987&r2=1513988&view=diff
==============================================================================
--- airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/ParameterNode.java
(original)
+++ airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/ParameterNode.java
Wed Aug 14 18:05:39 2013
@@ -80,14 +80,13 @@ public class ParameterNode extends Abstr
 	
     @Override
     public List<String> getSupportedActions() {
-        List<String> list = Arrays.asList(ViewAction.ID,CopyAction.ID,BrowserAction.ID);
         try {
 			new URI(getParameter().getValue().toString());
-			list.add(BrowserAction.ID);
+			return Arrays.asList(ViewAction.ID,CopyAction.ID,BrowserAction.ID);
 		} catch (URISyntaxException e) {
 			//the content is not a proper url
+			return Arrays.asList(ViewAction.ID,CopyAction.ID);
 		}
-		return list;
     }
 
     @Override



Mime
View raw message