Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug123091_TableEditorRefresh.java')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug123091_TableEditorRefresh.java74
1 files changed, 37 insertions, 37 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug123091_TableEditorRefresh.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug123091_TableEditorRefresh.java
index 6bb93c36c4..fc6323c3f6 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug123091_TableEditorRefresh.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug123091_TableEditorRefresh.java
@@ -23,44 +23,44 @@ import org.eclipse.swt.widgets.*;
* Displays a widget.table
*/
public class Bug123091_TableEditorRefresh {
- public static void main(String[] args) {
- new Bug123091_TableEditorRefresh().run();
- }
+ public static void main(String[] args) {
+ new Bug123091_TableEditorRefresh().run();
+ }
- public void run() {
- Display display = new Display();
- Shell shell = new Shell(display);
- shell.setLayout(new FillLayout());
- Table table = new Table(shell, SWT.MULTI | SWT.FULL_SELECTION);
- table.setHeaderVisible(true);
- table.setLinesVisible(true);
- for (int i = 0; i < 6; i++) {
- TableColumn column = new TableColumn(table, SWT.NONE);
- column.setMoveable(true);
- column.setResizable(true);
- column.setWidth(100);
- }
+ public void run() {
+ Display display = new Display();
+ Shell shell = new Shell(display);
+ shell.setLayout(new FillLayout());
+ Table table = new Table(shell, SWT.MULTI | SWT.FULL_SELECTION);
+ table.setHeaderVisible(true);
+ table.setLinesVisible(true);
+ for (int i = 0; i < 6; i++) {
+ TableColumn column = new TableColumn(table, SWT.NONE);
+ column.setMoveable(true);
+ column.setResizable(true);
+ column.setWidth(100);
+ }
- for (int i = 0; i < 10; i++) {
- TableItem item = new TableItem(table, SWT.NONE);
- for (int j = 0; j < 5; j++) {
- item.setText(j, "Row " + i + ", Column " + j);
- }
- ProgressBar pbar = new ProgressBar(table, SWT.SMOOTH|SWT.RESIZE);
- pbar.setMinimum(0);
- pbar.setSelection(60);
- TableEditor editor = new TableEditor(table);
- editor.grabHorizontal = editor.grabVertical = true;
- editor.setEditor(pbar,item,5);
+ for (int i = 0; i < 10; i++) {
+ TableItem item = new TableItem(table, SWT.NONE);
+ for (int j = 0; j < 5; j++) {
+ item.setText(j, "Row " + i + ", Column " + j);
+ }
+ ProgressBar pbar = new ProgressBar(table, SWT.SMOOTH|SWT.RESIZE);
+ pbar.setMinimum(0);
+ pbar.setSelection(60);
+ TableEditor editor = new TableEditor(table);
+ editor.grabHorizontal = editor.grabVertical = true;
+ editor.setEditor(pbar,item,5);
- }
- shell.pack();
- shell.open();
- while (!shell.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- display.dispose();
- }
+ }
+ shell.pack();
+ shell.open();
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) {
+ display.sleep();
+ }
+ }
+ display.dispose();
+ }
} \ No newline at end of file

Back to the top