]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed combo box list to open properly when starting edit 81/3081/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 9 Aug 2019 08:18:53 +0000 (11:18 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Fri, 9 Aug 2019 08:18:53 +0000 (11:18 +0300)
This order seems to work better than the old one.

gitlab #335

Change-Id: I22ed0fb0c41695b39ee88e6a9b6bc8bce16d6d0d

bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerImpl.java

index 40c21585a7d83c5b0b6c6d1c89f845528af3ed50..6361401b48723f58aa62516387421f5f473ea8cc 100644 (file)
@@ -1076,7 +1076,6 @@ class GraphExplorerImpl extends GraphExplorerImplBase implements Listener, Graph
         editor.setEditor(combo, item, columnIndex);
 
         combo.setFocus();
-        combo.setListVisible(true);
 
         GraphExplorerImpl.this.reconfigureTreeEditorForText(item, columnIndex, combo, combo.getText(), SWT.DEFAULT, 0, 0);
 
@@ -1085,6 +1084,7 @@ class GraphExplorerImpl extends GraphExplorerImplBase implements Listener, Graph
         // Removed in comboListener
         currentlyModifiedNodes.add(context);
 
+        combo.setListVisible(true);
         //System.out.println("START ENUMERATION EDITING: " + item);
     }