Author: pwang
Date: 2011-03-24 16:28:44 -0700 (Thu, 24 Mar 2011)
New Revision: 24593

Modified:
   
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
Log:
Hide some unwanted UI components

Modified: 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
===================================================================
--- 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
     2011-03-24 22:59:24 UTC (rev 24592)
+++ 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
     2011-03-24 23:28:44 UTC (rev 24593)
@@ -288,6 +288,21 @@
                this.selectAttributeFileButton.setVisible(false);
                this.targetDataSourceTextField.setVisible(false);
                
+               //Case import network
+               if (this.dialogType == NETWORK_IMPORT) {
+                       this.edgeRadioButton.setVisible(false);
+                       this.nodeRadioButton.setVisible(false);
+               }
+
+               // Case import node/edge attribute
+               if (this.dialogType == SIMPLE_ATTRIBUTE_IMPORT) {
+                       this.networkRadioButton.setVisible(false);
+                       // we will handle edge attribute import late
+                       this.edgeRadioButton.setVisible(false); 
+               }
+               
+               this.helpButton.setVisible(false);
+               
                setPreviewPanel(null);
        }
        

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