Commit b35532c2 authored by Florian's avatar Florian

performance improvements

parent 00891710
......@@ -113,7 +113,9 @@ public class AnalysisTreeView extends AbstractJFaceView {
for (ColumnViewer v : viewerList) {
v.refresh();
}
packCols();
for(int i = 0; i< viewerList.size(); i++){
packCols(i);
}
}
});
......@@ -124,8 +126,7 @@ public class AnalysisTreeView extends AbstractJFaceView {
}
public void setInputs(int i) {
void setInput(int i){
switch (i) {
case TRACETAB:
viewerList.get(TRACETAB).setInput(DataProvider.getTraces());
......@@ -147,9 +148,12 @@ public class AnalysisTreeView extends AbstractJFaceView {
}
inputsSet[i] = true;
packCols(i);
}
public void setInputs(int i) {
setTabTitles();
packCols();
setInput(i);
}
private void setTabTitles() {
......@@ -165,18 +169,20 @@ public class AnalysisTreeView extends AbstractJFaceView {
+ DataProvider.getAggreagtedOperationCalls().size() + ")");
}
private void packCols() {
private void packCols(int i) {
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
for (int i = 0; i < 4; i++) {
if(i < 4){
TreeColumn[] treeColumns = ((TreeViewer) viewerList.get(i)).getTree().getColumns();
for (TreeColumn treeColumn : treeColumns)
treeColumn.pack();
}
for (TableColumn col : ((TableViewer) viewerList.get(4)).getTable().getColumns()) {
col.pack();
}
if(i == 4){
for (TableColumn col : ((TableViewer) viewerList.get(i)).getTable().getColumns()) {
col.pack();
}
}
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment