Author: pwang
Date: 2009-06-26 16:15:03 -0700 (Fri, 26 Jun 2009)
New Revision: 17131

Modified:
   
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/GroupResultsPlugin.java
Log:
Removed CyGroupChangeListener, moved it to GroupPanel

Modified: 
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/GroupResultsPlugin.java
===================================================================
--- 
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/GroupResultsPlugin.java
      2009-06-26 23:04:42 UTC (rev 17130)
+++ 
csplugins/trunk/ucsd/mes/groupResults/src/org/cytoscape/groups/results/GroupResultsPlugin.java
      2009-06-26 23:15:03 UTC (rev 17131)
@@ -9,13 +9,8 @@
 import cytoscape.view.cytopanels.CytoPanelState;
 import cytoscape.plugin.CytoscapePlugin;
 
-// Cytoscape group system imports
-import cytoscape.groups.CyGroup;
-import cytoscape.groups.CyGroupManager;
-import cytoscape.groups.CyGroupChangeListener;
-
 public class GroupResultsPlugin extends CytoscapePlugin 
-                               implements CyGroupChangeListener { 
+{ 
 
        private GroupPanel groupPanel; 
        private CytoPanel cytoPanel; 
@@ -29,24 +24,7 @@
                groupPanel = new GroupPanel();
                cytoPanel = 
Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
                cytoPanel.add("Module Finding Results", groupPanel);
-
-               CyGroupManager.addGroupChangeListener(this);
        }
 
-       public void groupChanged(CyGroup group, 
CyGroupChangeListener.ChangeType change) { 
-               if ( change == CyGroupChangeListener.ChangeType.GROUP_CREATED ) 
{
-                       groupPanel.groupCreated(group);
-
-                       // set visible
-                       if ( cytoPanel.getState() == CytoPanelState.HIDE )
-                               cytoPanel.setState( CytoPanelState.DOCK );
-               } else if ( change == 
CyGroupChangeListener.ChangeType.GROUP_DELETED ) {
-                       groupPanel.groupRemoved(group);
-               } else if ( change == 
CyGroupChangeListener.ChangeType.GROUP_MODIFIED ) {
-                       groupPanel.groupChanged(group);
-               } else {
-                       System.err.println("unsupported change type: " + 
change);
-               }
-       }
 }
 


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