Author: pwang
Date: 2011-02-28 10:06:56 -0800 (Mon, 28 Feb 2011)
New Revision: 24247
Modified:
csplugins/trunk/ucsd/pwang/cy3samples/sample02/src/main/java/org/cytoscape/sample/internal/AddTabbedPanelAction.java
Log:
Add some comments
Modified:
csplugins/trunk/ucsd/pwang/cy3samples/sample02/src/main/java/org/cytoscape/sample/internal/AddTabbedPanelAction.java
===================================================================
---
csplugins/trunk/ucsd/pwang/cy3samples/sample02/src/main/java/org/cytoscape/sample/internal/AddTabbedPanelAction.java
2011-02-28 05:40:12 UTC (rev 24246)
+++
csplugins/trunk/ucsd/pwang/cy3samples/sample02/src/main/java/org/cytoscape/sample/internal/AddTabbedPanelAction.java
2011-02-28 18:06:56 UTC (rev 24247)
@@ -20,13 +20,14 @@
public AddTabbedPanelAction(CyApplicationManager applicationManager,
CySwingApplication desktopApp,
MyCytoPanel myCytoPanel){
-
+ // Add a menu item -- Plugins->sample02
super("sample02", applicationManager);
setPreferredMenu("Plugins");
this.desktopApp = desktopApp;
- cytoPanelWest = desktopApp.getCytoPanel(CytoPanelName.WEST);
+ //Note: myCytoPanel is bean we defined and registered as a
service
+ this.cytoPanelWest =
desktopApp.getCytoPanel(CytoPanelName.WEST);
this.myCytoPanel = myCytoPanel;
}
@@ -36,7 +37,7 @@
* @param e DOCUMENT ME!
*/
public void actionPerformed(ActionEvent e) {
- // If the state of the cytoPanelEast is HIDE, show it
+ // If the state of the cytoPanelWest is HIDE, show it
if (cytoPanelWest.getState() == CytoPanelState.HIDE) {
cytoPanelWest.setState(CytoPanelState.DOCK);
}
@@ -46,7 +47,6 @@
if (index == -1) {
return;
}
-
cytoPanelWest.setSelectedIndex(index);
}
--
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.