setViewerInput now is much faster and doesn't cause text to flicker
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 15:57:43 +0000 (17:57 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 15:57:43 +0000 (17:57 +0200)
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/InstructionTable.java

index 2a3ad6c..afa7f40 100644 (file)
@@ -77,6 +77,8 @@ public class InstructionTable
 
        private void createColumns()
        {
+               viewer.getTable().setVisible(false);
+
                int size = miDef.size();
                columns = new TableViewerColumn[size + 1];
 
@@ -120,6 +122,8 @@ public class InstructionTable
                        }
                        calculateOptimalColumnSize(i + 1, columnTitles[i], longestPossibleContents);
                }
+
+               viewer.getTable().setVisible(true);
        }
 
        private static String calculateColumnTitle(int startBit, int endBit)