airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1378640 - in /incubator/airavata/trunk/modules: commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/ commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/ xbaya-gui/src/main/java/org/a...
Date Wed, 29 Aug 2012 16:53:47 GMT
Author: samindaw
Date: Wed Aug 29 16:53:46 2012
New Revision: 1378640

URL: http://svn.apache.org/viewvc?rev=1378640&view=rev
Log:
removing sling integration classes & some refactoring

Removed:
    incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/SlingRegistry.java
    incubator/airavata/trunk/modules/commons/registry-api/src/main/java/org/apache/airavata/registry/api/impl/AiravataSlingRegistry.java
Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/graph/NodeGUI.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/XBayaUtil.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/graph/NodeGUI.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/graph/NodeGUI.java?rev=1378640&r1=1378639&r2=1378640&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/graph/NodeGUI.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/graph/NodeGUI.java
Wed Aug 29 16:53:46 2012
@@ -21,8 +21,10 @@
 
 package org.apache.airavata.xbaya.ui.graph;
 
+import java.awt.AlphaComposite;
 import java.awt.BasicStroke;
 import java.awt.Color;
+import java.awt.Composite;
 import java.awt.Dimension;
 import java.awt.Font;
 import java.awt.FontMetrics;
@@ -324,8 +326,11 @@ public abstract class NodeGUI implements
 		AffineTransform affineTransform = new AffineTransform();
 		affineTransform.translate(5,5);
 		Shape shadow = affineTransform.createTransformedShape(shape);
+		Composite oldComposite = g.getComposite();
+		g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.65F));
 		g.setColor(Color.GRAY);
 		g.fill(shadow);
+		g.setComposite(oldComposite);
 		DrawUtils.gradientFillShape(g, getEndColor(paintBodyColor), paintBodyColor, shape);
 	}
 

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/XBayaUtil.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/XBayaUtil.java?rev=1378640&r1=1378639&r2=1378640&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/XBayaUtil.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/util/XBayaUtil.java
Wed Aug 29 16:53:46 2012
@@ -23,14 +23,20 @@ package org.apache.airavata.xbaya.util;
 
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
-import java.net.*;
-import java.util.*;
+import java.net.HttpURLConnection;
+import java.net.SocketTimeoutException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
 
-import javax.jcr.RepositoryException;
 import javax.xml.parsers.ParserConfigurationException;
 
-import org.apache.airavata.registry.api.AiravataRegistry;
-import org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry;
 import org.apache.airavata.workflow.model.exceptions.WorkflowException;
 import org.apache.airavata.workflow.model.exceptions.WorkflowRuntimeException;
 import org.apache.airavata.workflow.model.graph.DataPort;
@@ -335,12 +341,12 @@ public class XBayaUtil {
 		return parameters;
 	}
 
-    public static AiravataRegistry getRegistry(URL url) throws IOException, RepositoryException,
URISyntaxException {
-        Properties properties = new Properties();
-        properties.load(url.openStream());
-        JCRComponentRegistry jcrComponentRegistry = new JCRComponentRegistry(new URI((String)
properties.get(JCR_URL)),
-                (String) properties.get(JCR_USER),(String) properties.get(JCR_PASS));
-        return jcrComponentRegistry.getRegistry();
-    }
+//    public static AiravataRegistry getRegistry(URL url) throws IOException, RepositoryException,
URISyntaxException {
+//        Properties properties = new Properties();
+//        properties.load(url.openStream());
+//        JCRComponentRegistry jcrComponentRegistry = new JCRComponentRegistry(new URI((String)
properties.get(JCR_URL)),
+//                (String) properties.get(JCR_USER),(String) properties.get(JCR_PASS));
+//        return jcrComponentRegistry.getRegistry();
+//    }
 
 }
\ No newline at end of file



Mime
View raw message