Author: kono
Date: 2010-10-11 16:55:00 -0700 (Mon, 11 Oct 2010)
New Revision: 22210

Modified:
   
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/VizMapperMainPanel.java
Log:
Bug ID 0002389: "Controlling Attribute Name and Mapping Type ComboBoxes are not 
selectable in some cases" is fixed.  Re-registering editor registry fixed this 
problem.

Modified: 
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/VizMapperMainPanel.java
===================================================================
--- 
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/VizMapperMainPanel.java
       2010-10-11 22:52:32 UTC (rev 22209)
+++ 
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/VizMapperMainPanel.java
       2010-10-11 23:55:00 UTC (rev 22210)
@@ -1119,7 +1119,8 @@
                repaint();
        }
 
-       private void processMouseClick(MouseEvent e) {
+       private void processMouseClick(MouseEvent e) {          
+               
                int selected = 
visualPropertySheetPanel.getTable().getSelectedRow();
                /*
                 * Adjust height if it's an legend icon.
@@ -1169,9 +1170,13 @@
                                expandLastSelectedItem(type.getName());
 
                                
visualPropertySheetPanel.getTable().scrollRectToVisible(new Rectangle(0, 0, 10, 
10));
-                               visualPropertySheetPanel.repaint();
 
                                editorReg.registerEditor(mapProp, 
mappingTypeEditor);
+                       
+                               // This is necessary because sometimes 
registory is lost when updating this sheet.
+                               
visualPropertySheetPanel.setEditorFactory(editorReg);
+                               visualPropertySheetPanel.repaint();
+                               
                                return;
                        } else if ((e.getClickCount() == 1) && (category == 
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