Author: pwang
Date: 2011-01-25 10:35:10 -0800 (Tue, 25 Jan 2011)
New Revision: 23605

Added:
   csplugins/trunk/ucsd/pwang/sample02/pom.xml
   csplugins/trunk/ucsd/pwang/sample02/src/main/
   csplugins/trunk/ucsd/pwang/sample02/src/main/java/
   csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/
   csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/
   csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/
   
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/
   
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/Sample02Plugin.java
   
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/action/
   
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/action/Sample02Action.java
   csplugins/trunk/ucsd/pwang/sample02/src/main/resources/
   csplugins/trunk/ucsd/pwang/sample02/src/main/resources/plugin.props
Log:
re-organize

Added: csplugins/trunk/ucsd/pwang/sample02/pom.xml
===================================================================
--- csplugins/trunk/ucsd/pwang/sample02/pom.xml                         (rev 0)
+++ csplugins/trunk/ucsd/pwang/sample02/pom.xml 2011-01-25 18:35:10 UTC (rev 
23605)
@@ -0,0 +1,118 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.mycompany</groupId>
+  <artifactId>sample02</artifactId>
+  <version>0.1</version>
+  <packaging>maven-plugin</packaging>
+  <name>sample02</name>
+  <description>Test plugin</description>
+  
+  <properties>
+    <bundle.symbolicName>com.mycompany.sample02</bundle.symbolicName>
+    <bundle.namespace>com.mycompany.sample</bundle.namespace>
+  </properties>
+  
+    <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+      </resource>
+      <!--
+       | example additional resource entries, useful when building Eclipse RCP 
applications
+      -->
+      <resource>
+        <directory>.</directory>
+        <includes>
+          <include>plugin.xml</include>
+          <include>plugin.properties</include>
+          <include>icons/**</include>
+        </includes>
+      </resource>
+    </resources>
+    <plugins>
+    
+    
+    <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              
<Cytoscape-Plugin>com.mycompany.sample.internal.Sample02Plugin</Cytoscape-Plugin>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
+    
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.ops4j</groupId>
+        <artifactId>maven-pax-plugin</artifactId>
+        <version>1.4</version>
+        <!--
+           | enable improved OSGi compilation support for the bundle 
life-cycle.
+           | to switch back to the standard bundle life-cycle, move this 
setting
+           | down to the maven-bundle-plugin section
+          -->
+        <extensions>true</extensions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>1.4.3</version>
+        <!--
+         | the following instructions build a simple set of public/private 
classes into an OSGi bundle
+        -->
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+            <Bundle-Version>${pom.version}</Bundle-Version>
+            <_include>-osgi.bnd</_include>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  
+  
+
+  
+  
+  
+  
+    <dependencies>
+      <dependency>
+      <groupId>org.cytoscape</groupId>
+      <artifactId>plugin-api</artifactId>
+      <version>3.0.0-alpha2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.cytoscape</groupId>
+      <artifactId>core-task-api</artifactId>
+      <version>3.0.0-alpha2-SNAPSHOT</version>
+    </dependency>
+  
+  
+       <dependency>
+       <groupId>org.cytoscape</groupId>
+       <artifactId>swing-application-api</artifactId>
+       <version>1.0-SNAPSHOT</version>
+       </dependency>
+
+       <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>work-swing-api</artifactId>
+                       <version>1.0-SNAPSHOT</version>
+       </dependency>
+  
+  
+    </dependencies>
+  
+  
+</project>

Added: 
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/Sample02Plugin.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/Sample02Plugin.java
                         (rev 0)
+++ 
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/Sample02Plugin.java
 2011-01-25 18:35:10 UTC (rev 23605)
@@ -0,0 +1,21 @@
+
+package com.mycompany.sample.internal;
+
+import org.cytoscape.plugin.CyPluginAdapter;
+import com.mycompany.sample.internal.action.Sample02Action;
+import org.cytoscape.plugin.CyPlugin;
+import org.cytoscape.application.swing.CySwingApplication;
+
+/**
+ * An implementation of CyPluginAdapter
+ */
+public class Sample02Plugin extends CyPlugin {
+       
+       
+       public Sample02Plugin(CyPluginAdapter a){
+               super(a);
+               
+               a.getCySwingApplication().addAction(new Sample02Action(a));
+               
+       }
+}

Added: 
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/action/Sample02Action.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/action/Sample02Action.java
                          (rev 0)
+++ 
csplugins/trunk/ucsd/pwang/sample02/src/main/java/com/mycompany/sample/internal/action/Sample02Action.java
  2011-01-25 18:35:10 UTC (rev 23605)
@@ -0,0 +1,78 @@
+/*
+ File: PreferenceAction.java
+
+ Copyright (c) 2006, The Cytoscape Consortium (www.cytoscape.org)
+
+ The Cytoscape Consortium is:
+ - Institute for Systems Biology
+ - University of California San Diego
+ - Memorial Sloan-Kettering Cancer Center
+ - Institut Pasteur
+ - Agilent Technologies
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications.  In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage.  See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+//-------------------------------------------------------------------------
+// $Revision: 7760 $
+// $Date: 2006-06-26 09:28:49 -0700 (Mon, 26 Jun 2006) $
+// $Author: mes $
+//-------------------------------------------------------------------------
+package com.mycompany.sample.internal.action;
+
+import java.awt.event.ActionEvent;
+import org.cytoscape.application.swing.AbstractCyAction;
+import org.cytoscape.plugin.CyPluginAdapter;
+
+//import org.cytoscape.application.swing.CySwingApplication;
+
+/**
+ *
+ */
+public class Sample02Action extends AbstractCyAction {
+       private final static long serialVersionUID = 12022346993206L;
+
+       /**
+        * Creates a new action object.
+        */
+       public Sample02Action(CyPluginAdapter adapter) {
+                               
+               super("Sample02 Plugin", adapter.getCyApplicationManager());
+
+               
System.out.println("\n\tcom.mycompany.sample.internal.action.Sample02Action()....");
+               
+               setPreferredMenu("Plugins");
+       }
+
+       /**
+        * DOCUMENT ME!
+        * 
+        * @param e
+        *            DOCUMENT ME!
+        */
+       public void actionPerformed(ActionEvent e) {
+               System.out.println("Sample02 plugin menu item is clicked!");
+       }
+}

Added: csplugins/trunk/ucsd/pwang/sample02/src/main/resources/plugin.props
===================================================================
--- csplugins/trunk/ucsd/pwang/sample02/src/main/resources/plugin.props         
                (rev 0)
+++ csplugins/trunk/ucsd/pwang/sample02/src/main/resources/plugin.props 
2011-01-25 18:35:10 UTC (rev 23605)
@@ -0,0 +1,27 @@
+# This props file would be filled out and included in the plugin jar file.  
This props file will be used 
+# to put information into the Plugin Manager about the plugin 
+
+
+# -- The following properties are REQUIRED -- #
+
+# The plugin name that will be displayed to users
+pluginName=sample02
+
+# Description used to give users information about the plugin such as what it 
does.  
+# Html tags are encouraged for formatting purposes.
+pluginDescription=Cytoscape plugin sample02 ...
+
+# Plugin version number, this must be two numbers separated by a decimlal.  
Ex. 0.2, 14.03
+pluginVersion=0.1
+
+# Compatible Cytoscape version
+cytoscapeVersion=3.0
+
+# Category, use one of the categories listed on the website or create your own
+pluginCategory=Other
+
+# List of authors.  Note each author and institution pair are separated by a : 
(colon)
+# each additional author institution pair must be separated from other pairs 
bye a ; (semicolon)
+pluginAuthorsIntsitutions=Peng-Liang Wang:UCSD
+
+# Date this plugin/plugin version was released releaseDate=November 18, 2010 

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