Author: mes
Date: 2011-09-13 16:20:43 -0700 (Tue, 13 Sep 2011)
New Revision: 26790
Added:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/java/org/cytoscape/prefuse/layouts/internal/CyActivator.java
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
Removed:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml
Modified:
core3/impl/branches/no-spring/layout-prefuse-impl/osgi.bnd
Log:
removed use of spring
Modified: core3/impl/branches/no-spring/layout-prefuse-impl/osgi.bnd
===================================================================
--- core3/impl/branches/no-spring/layout-prefuse-impl/osgi.bnd 2011-09-13
23:18:06 UTC (rev 26789)
+++ core3/impl/branches/no-spring/layout-prefuse-impl/osgi.bnd 2011-09-13
23:20:43 UTC (rev 26790)
@@ -3,4 +3,5 @@
#-----------------------------------------------------------------
Private-Package: ${bundle.namespace}.*
+Bundle-Activator: ${bundle.namespace}.CyActivator
Added:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/java/org/cytoscape/prefuse/layouts/internal/CyActivator.java
===================================================================
---
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/java/org/cytoscape/prefuse/layouts/internal/CyActivator.java
(rev 0)
+++
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/java/org/cytoscape/prefuse/layouts/internal/CyActivator.java
2011-09-13 23:20:43 UTC (rev 26790)
@@ -0,0 +1,28 @@
+
+package org.cytoscape.prefuse.layouts.internal;
+
+import org.cytoscape.work.undo.UndoSupport;
+import org.cytoscape.prefuse.layouts.internal.ForceDirectedLayout;
+import org.cytoscape.view.layout.CyLayoutAlgorithm;
+import org.osgi.framework.BundleContext;
+import org.cytoscape.service.util.AbstractCyActivator;
+import java.util.Properties;
+
+
+public class CyActivator extends AbstractCyActivator {
+ public CyActivator() {
+ super();
+ }
+
+ public void start(BundleContext bc) {
+
+ UndoSupport undoSupportServiceRef =
getService(bc,UndoSupport.class);
+
+ ForceDirectedLayout forceDirectedLayout = new
ForceDirectedLayout(undoSupportServiceRef);
+
+ Properties forceDirectedLayoutProps = new Properties();
+ forceDirectedLayoutProps.setProperty("preferredMenu","Prefuse
Layouts");
+ registerService(bc,forceDirectedLayout,CyLayoutAlgorithm.class,
forceDirectedLayoutProps);
+ }
+}
+
Deleted:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
---
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2011-09-13 23:18:06 UTC (rev 26789)
+++
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2011-09-13 23:20:43 UTC (rev 26790)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd"
- default-lazy-init="false">
-
- <osgi:service id="forceDirectedLayoutService"
- ref="forceDirectedLayout"
interface="org.cytoscape.view.layout.CyLayoutAlgorithm">
- <osgi:service-properties>
- <entry key="preferredMenu" value="Prefuse Layouts" />
- </osgi:service-properties>
- </osgi:service>
-
- <osgi:reference id="undoSupportServiceRef"
- interface="org.cytoscape.work.undo.UndoSupport">
- </osgi:reference>
-
-</beans>
Copied:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
(from rev 26762,
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml)
===================================================================
---
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
(rev 0)
+++
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
2011-09-13 23:20:43 UTC (rev 26790)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+ http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd"
+ default-lazy-init="false">
+
+ <osgi:service id="forceDirectedLayoutService"
+ ref="forceDirectedLayout"
interface="org.cytoscape.view.layout.CyLayoutAlgorithm">
+ <osgi:service-properties>
+ <entry key="preferredMenu" value="Prefuse Layouts" />
+ </osgi:service-properties>
+ </osgi:service>
+
+ <osgi:reference id="undoSupportServiceRef"
+ interface="org.cytoscape.work.undo.UndoSupport">
+ </osgi:reference>
+
+</beans>
Deleted:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
---
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml
2011-09-13 23:18:06 UTC (rev 26789)
+++
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml
2011-09-13 23:20:43 UTC (rev 26790)
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:lang="http://www.springframework.org/schema/lang"
xmlns:osgi="http://www.springframework.org/schema/osgi"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd
- http://www.springframework.org/schema/lang
http://www.springframework.org/schema/lang/spring-lang-3.0.xsd
- http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd
- http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util.xsd"
- default-lazy-init="false">
-
- <context:annotation-config />
-
-
- <bean id="forceDirectedLayout"
class="org.cytoscape.prefuse.layouts.internal.ForceDirectedLayout">
- <constructor-arg ref="undoSupportServiceRef"/>
- </bean>
-</beans>
Copied:
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
(from rev 26762,
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml)
===================================================================
---
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
(rev 0)
+++
core3/impl/branches/no-spring/layout-prefuse-impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
2011-09-13 23:20:43 UTC (rev 26790)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:lang="http://www.springframework.org/schema/lang"
xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+ http://www.springframework.org/schema/aop
+ http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
+ http://www.springframework.org/schema/context
+ http://www.springframework.org/schema/context/spring-context-3.0.xsd
+ http://www.springframework.org/schema/lang
http://www.springframework.org/schema/lang/spring-lang-3.0.xsd
+ http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd
+ http://www.springframework.org/schema/util
+ http://www.springframework.org/schema/util/spring-util.xsd"
+ default-lazy-init="false">
+
+ <context:annotation-config />
+
+
+ <bean id="forceDirectedLayout"
class="org.cytoscape.prefuse.layouts.internal.ForceDirectedLayout">
+ <constructor-arg ref="undoSupportServiceRef"/>
+ </bean>
+</beans>
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.