Author: pwang
Date: 2012-02-10 09:36:06 -0800 (Fri, 10 Feb 2012)
New Revision: 28233
Modified:
csplugins/trunk/ucsd/pwang/subnetworkByCategory/src/main/java/org/cytoscape/subnetwork/SubnetworkByCategoryAction.java
Log:
Get category attribute from user
Modified:
csplugins/trunk/ucsd/pwang/subnetworkByCategory/src/main/java/org/cytoscape/subnetwork/SubnetworkByCategoryAction.java
===================================================================
---
csplugins/trunk/ucsd/pwang/subnetworkByCategory/src/main/java/org/cytoscape/subnetwork/SubnetworkByCategoryAction.java
2012-02-10 02:54:59 UTC (rev 28232)
+++
csplugins/trunk/ucsd/pwang/subnetworkByCategory/src/main/java/org/cytoscape/subnetwork/SubnetworkByCategoryAction.java
2012-02-10 17:36:06 UTC (rev 28233)
@@ -38,13 +38,20 @@
public void actionPerformed(ActionEvent e) {
String attributeName = "Category";// this is the
default attribute name
- // get attributeName from user
+ // get attributeName (Type String or int) from user
+ String[] attrNames =
Cytoscape.getNodeAttributes().getAttributeNames();
+
+ ChooseCategoryAttributeDialog dlg = new
ChooseCategoryAttributeDialog(Cytoscape.getDesktop(), true, attrNames);
+
+ dlg.setVisible(true);
- //
+ if (dlg.getSelectedAttribute() == null){
+ return;
+ }
+
CyNetwork net = Cytoscape.getCurrentNetwork();
-
SubnetworkByCategory w = new SubnetworkByCategory();
--
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.