Author: pwang
Date: 2011-03-01 13:10:13 -0800 (Tue, 01 Mar 2011)
New Revision: 24281

Added:
   
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aAction.java
   
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aPlugin.java
Removed:
   
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03a.java
Log:
Renamed class

Deleted: 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03a.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03a.java
  2011-03-01 21:09:39 UTC (rev 24280)
+++ 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03a.java
  2011-03-01 21:10:13 UTC (rev 24281)
@@ -1,106 +0,0 @@
-/*
- 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 org.cytoscape.sample.internal;
-
-import java.awt.event.ActionEvent;
-
-import javax.swing.ImageIcon;
-
-import org.cytoscape.application.swing.AbstractCyAction;
-import org.cytoscape.plugin.CyPluginAdapter;
-
-/**
- *
- */
-public class Sample03a extends AbstractCyAction {
-       private final static long serialVersionUID = 1202254699098L;
-
-       /**
-        * Creates a new action object.
-        */
-       public Sample03a(CyPluginAdapter adapter) {
-                               
-               super("Sample03a Plugin", adapter.getCyApplicationManager());
-
-               setPreferredMenu("Plugins");
-               
-               ImageIcon icon = new 
ImageIcon(getClass().getResource("/images/tiger.jpg"));
-               ImageIcon smallIcon = new 
ImageIcon(getClass().getResource("/images/tiger_small.jpg"));
-               
-               putValue(LARGE_ICON_KEY, icon);
-               putValue(SMALL_ICON, smallIcon);
-
-               System.out.println("\nSample03a plugin constructor....");
-
-       }
-
-       /**
-        * DOCUMENT ME!
-        * 
-        * @param e
-        *            DOCUMENT ME!
-        */
-       public void actionPerformed(ActionEvent e) {
-               System.out.println("Sample03a plugin/toolbar icon is clicked!");
-       }
-       
-       
-       /**
-        *  DOCUMENT ME!
-        *
-        * @return  DOCUMENT ME!
-        */
-       public boolean isInToolBar() {
-               return true;
-       }
-
-       /**
-        *  DOCUMENT ME!
-        *
-        * @return  DOCUMENT ME!
-        */
-       public boolean isInMenuBar() {
-               return false;
-       }
-       
-}

Copied: 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aAction.java
 (from rev 24240, 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03a.java)
===================================================================
--- 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aAction.java
                            (rev 0)
+++ 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aAction.java
    2011-03-01 21:10:13 UTC (rev 24281)
@@ -0,0 +1,103 @@
+/*
+ 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 org.cytoscape.sample.internal;
+
+import java.awt.event.ActionEvent;
+
+import javax.swing.ImageIcon;
+
+import org.cytoscape.application.swing.AbstractCyAction;
+import org.cytoscape.plugin.CyPluginAdapter;
+
+/**
+ *
+ */
+public class Sample03aAction extends AbstractCyAction {
+       private final static long serialVersionUID = 1202254699098L;
+
+       /**
+        * Creates a new action object.
+        */
+       public Sample03aAction(CyPluginAdapter adapter) {
+                               
+               // Add a menu item at Plugins->Sample03a        
+               super("Sample03a", adapter.getCyApplicationManager());
+               setPreferredMenu("Plugins");            
+               
+               ImageIcon icon = new 
ImageIcon(getClass().getResource("/images/tiger.jpg"));
+               ImageIcon smallIcon = new 
ImageIcon(getClass().getResource("/images/tiger_small.jpg"));
+               
+               putValue(LARGE_ICON_KEY, icon);
+               putValue(SMALL_ICON, smallIcon);
+       }
+
+       /**
+        * DOCUMENT ME!
+        * 
+        * @param e
+        *            DOCUMENT ME!
+        */
+       public void actionPerformed(ActionEvent e) {
+               System.out.println("Sample03a plugin/toolbar icon is clicked!");
+       }
+       
+       
+       /**
+        *  DOCUMENT ME!
+        *
+        * @return  DOCUMENT ME!
+        */
+       public boolean isInToolBar() {
+               return true;
+       }
+
+       /**
+        *  DOCUMENT ME!
+        *
+        * @return  DOCUMENT ME!
+        */
+       public boolean isInMenuBar() {
+               return true;
+       }
+       
+}

Added: 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aPlugin.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aPlugin.java
                            (rev 0)
+++ 
csplugins/trunk/ucsd/pwang/cy3samples/sample03a/src/main/java/org/cytoscape/sample/internal/Sample03aPlugin.java
    2011-03-01 21:10:13 UTC (rev 24281)
@@ -0,0 +1,18 @@
+package org.cytoscape.sample.internal;
+
+import org.cytoscape.plugin.CyPlugin;
+import org.cytoscape.plugin.CyPluginAdapter;
+
+
+/**
+ * An implementation of CyPluginAdapter
+ */
+public class Sample03aPlugin extends CyPlugin {
+       
+       public Sample03aPlugin(CyPluginAdapter a){
+               super(a);
+               
+               a.getCySwingApplication().addAction(new Sample03aAction(a));
+               
+       }
+}

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