Skip to content

Commit

Permalink
Merge pull request #4580 from bamaer/4577
Browse files Browse the repository at this point in the history
remove remove all rows from fields table. fixes #4577
  • Loading branch information
hansva authored Nov 21, 2024
2 parents 014598b + 8f84e87 commit 70eaed8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;

Expand Down Expand Up @@ -338,11 +337,9 @@ public void getData() {
wLogMessage.setText(input.getLogMessage());
}

Table table = wFields.table;
table.removeAll();
for (int i = 0; i < input.getLogFields().size(); i++) {
LogField field = input.getLogFields().get(i);
TableItem ti = new TableItem(table, SWT.NONE);
TableItem ti = new TableItem(wFields.table, SWT.NONE);
ti.setText(0, "" + (i + 1));
ti.setText(1, field.getName());
}
Expand Down

0 comments on commit 70eaed8

Please sign in to comment.