Author: jm
Date: 2011-04-28 14:41:45 -0700 (Thu, 28 Apr 2011)
New Revision: 24850

Added:
   csplugins/trunk/soc/paperwing/osgi.bnd
   csplugins/trunk/soc/paperwing/pom.xml
   csplugins/trunk/soc/paperwing/src/
   csplugins/trunk/soc/paperwing/src/main/
   csplugins/trunk/soc/paperwing/src/main/java/
   csplugins/trunk/soc/paperwing/src/main/java/org/
   csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/
   csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/
   csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/internal/
   
csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/internal/SampleAction.java
   csplugins/trunk/soc/paperwing/src/main/resources/
   csplugins/trunk/soc/paperwing/src/main/resources/META-INF/
   csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/
   
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context-osgi.xml
   
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context.xml
Log:
Added skeleton plugin

Added: csplugins/trunk/soc/paperwing/osgi.bnd
===================================================================
--- csplugins/trunk/soc/paperwing/osgi.bnd                              (rev 0)
+++ csplugins/trunk/soc/paperwing/osgi.bnd      2011-04-28 21:41:45 UTC (rev 
24850)
@@ -0,0 +1,7 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+
+Spring-Context: META-INF/spring/*.xml
+Private-Package: ${bundle.namespace}.internal.*
+Export-Package: 
!${bundle.namespace}.internal.*,${bundle.namespace}.*;version="${pom.version}"

Added: csplugins/trunk/soc/paperwing/pom.xml
===================================================================
--- csplugins/trunk/soc/paperwing/pom.xml                               (rev 0)
+++ csplugins/trunk/soc/paperwing/pom.xml       2011-04-28 21:41:45 UTC (rev 
24850)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";
+       xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+       <parent>
+               <groupId>org.cytoscape</groupId>
+               <artifactId>parent</artifactId>
+               <version>3.0.0-alpha6-SNAPSHOT</version>
+       </parent>
+       <properties>
+               
<bundle.symbolicName>org.cytoscape.paperwing-impl</bundle.symbolicName>
+               <bundle.namespace>org.cytoscape.paperwing</bundle.namespace>
+       </properties>
+       <modelVersion>4.0.0</modelVersion>
+       <groupId>org.cytoscape</groupId>
+       <artifactId>paperwing-impl</artifactId>
+       <version>1.0-SNAPSHOT</version>
+       <name>${bundle.symbolicName} [${bundle.namespace}]</name>
+       <packaging>bundle</packaging>
+       <dependencies>
+        <dependency>
+            <groupId>org.cytoscape</groupId>
+            <artifactId>model-api</artifactId>
+            <version>3.0.0-alpha3-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+               <groupId>org.cytoscape</groupId>
+               <artifactId>swing-application-api</artifactId>
+               <version>3.0.0-alpha2-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+               <groupId>org.cytoscape</groupId>
+               <artifactId>viewmodel-api</artifactId>
+               <version>3.0.0-alpha4-SNAPSHOT</version>
+               <scope>compile</scope>
+        </dependency>
+
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>${junit.version}</version>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+       
+       <repositories>
+               <repository>
+                       <id>cytoscape_thirdparty</id>
+                       <snapshots>
+                               <enabled>false</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>true</enabled>
+                       </releases>
+                       <name>Wrapped Third Party Libraries</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/thirdparty/</url>
+               </repository>
+       </repositories>
+       
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.ops4j</groupId>
+                               <artifactId>maven-pax-plugin</artifactId>
+                               <version>${maven-pax-plugin.version}</version>
+                               <extensions>true</extensions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               
<version>${maven-bundle-plugin.version}</version>
+                               <configuration>
+                                       <instructions>
+                                               
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+                                               
<Bundle-Version>${pom.version}</Bundle-Version>
+                                               <_include>-osgi.bnd</_include>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+</project>
\ No newline at end of file


Property changes on: csplugins/trunk/soc/paperwing/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: 
csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/internal/SampleAction.java
===================================================================
--- 
csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/internal/SampleAction.java
                              (rev 0)
+++ 
csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/internal/SampleAction.java
      2011-04-28 21:41:45 UTC (rev 24850)
@@ -0,0 +1,19 @@
+package org.cytoscape.paperwing.internal;
+
+import java.awt.event.ActionEvent;
+import java.util.Map;
+
+import javax.swing.JOptionPane;
+
+import org.cytoscape.application.swing.AbstractCyAction;
+import org.cytoscape.session.CyApplicationManager;
+
+public class SampleAction extends AbstractCyAction {
+       public SampleAction(Map<String, String> properties, 
CyApplicationManager applicationManager) {
+               super(properties, applicationManager);
+       }
+
+       public void actionPerformed(ActionEvent e) {
+               JOptionPane.showMessageDialog(null, "Hello, world!");
+       }
+}


Property changes on: 
csplugins/trunk/soc/paperwing/src/main/java/org/cytoscape/paperwing/internal/SampleAction.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
--- 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context-osgi.xml
                            (rev 0)
+++ 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context-osgi.xml
    2011-04-28 21:41:45 UTC (rev 24850)
@@ -0,0 +1,15 @@
+<?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-2.5.xsd
+                      http://www.springframework.org/schema/osgi 
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd";
+       default-lazy-init="false">
+
+       <!-- Imported Services -->
+       <osgi:reference id="cyApplicationManagerRef"
+               interface="org.cytoscape.session.CyApplicationManager" />
+       
+       <!-- Exported Services -->
+       <osgi:service id="sampleActionService" ref="sampleAction"
+               interface="org.cytoscape.application.swing.CyAction"/>
+</beans>


Property changes on: 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context-osgi.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
--- 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context.xml
                         (rev 0)
+++ 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context.xml
 2011-04-28 21:41:45 UTC (rev 24850)
@@ -0,0 +1,29 @@
+<?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";
+       xsi:schemaLocation="
+    http://www.springframework.org/schema/beans
+    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+    http://www.springframework.org/schema/aop
+    http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
+    http://www.springframework.org/schema/context
+           http://www.springframework.org/schema/context/spring-context-2.5.xsd
+           http://www.springframework.org/schema/lang 
http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
+            http://www.springframework.org/schema/osgi 
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd";
+       default-lazy-init="true">
+
+       <context:annotation-config />
+
+       <bean name="sampleAction" 
class="org.cytoscape.paperwing.internal.SampleAction">
+               <constructor-arg>
+                       <props>
+                               <prop key="title">Sample Action</prop>
+                               <prop key="inMenuBar">true</prop>
+                               <prop key="preferredMenu">Plugins</prop>
+                       </props>
+               </constructor-arg>
+               <constructor-arg ref="cyApplicationManagerRef"/>
+       </bean>
+</beans>


Property changes on: 
csplugins/trunk/soc/paperwing/src/main/resources/META-INF/spring/bundle-context.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

-- 
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.

Reply via email to