Skip to content

Commit 9b4def2

Browse files
committed
SWT updates
1 parent 208bb00 commit 9b4def2

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

de.vogella.osgi.xinternal.provider/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Bundle-Name: Provider
44
Bundle-SymbolicName: de.vogella.osgi.xinternal.provider
55
Bundle-Version: 1.0.0.qualifier
66
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
7-
Export-Package: de.vogella.osgi.xinternal.provider;x-friends:="de.vogella.osgi.xinternal.consumer"
7+
Export-Package: de.vogella.osgi.xinternal.provider;x-internal:=true

de.vogella.swt/src/de/vogella/swt/layouts/GridLayoutSWT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public static void main(String[] args) {
3232
label = new Label(shell, SWT.BORDER);
3333
label.setText("This is a label");
3434
// Create new layout data
35-
GridData data = new GridData(GridData.FILL, GridData.BEGINNING, true,
35+
GridData data = new GridData(SWT.FILL, SWT.LEFT, true,
3636
false, 2, 1);
3737
label.setLayoutData(data);
3838

3939
// Create a new label which is used as a separator
4040
label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);
4141
// Create new layout data
42-
data = new GridData(GridData.FILL, GridData.BEGINNING, true, false, 2,
42+
data = new GridData(SWT.FILL, SWT.LEFT, true, false, 2,
4343
1);
4444
data.horizontalSpan = 2;
4545
label.setLayoutData(data);
@@ -48,7 +48,7 @@ public static void main(String[] args) {
4848
Button b = new Button(shell, SWT.PUSH);
4949
b.setText("New Button");
5050

51-
data = new GridData(GridData.END, GridData.BEGINNING, false, false, 2,
51+
data = new GridData(SWT.BOTTOM, SWT.LEFT, false, false, 2,
5252
1);
5353
b.setLayoutData(data);
5454

de.vogella.swt/src/de/vogella/swt/widgets/CTabFolderExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void main(String[] args) {
1717
shell.setLayout(new GridLayout());
1818
// SWT.BOTTOM to show at the bottom
1919
CTabFolder folder = new CTabFolder(shell, SWT.BOTTOM);
20-
GridData data = new GridData(GridData.FILL, GridData.FILL, true, true,
20+
GridData data = new GridData(SWT.FILL, SWT.FILL, true, true,
2121
2, 1);
2222
folder.setLayoutData(data);
2323
CTabItem cTabItem1 = new CTabItem(folder, SWT.NONE);
@@ -34,7 +34,7 @@ public static void main(String[] args) {
3434
shell.setSize(200, 200);
3535
shell.open();
3636

37-
while (!display.isDisposed()) {
37+
while (!shell.isDisposed()) {
3838
if (!display.readAndDispatch()) {
3939
display.sleep();
4040
}

de.vogella.swt/src/de/vogella/swt/widgets/ComboTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void main(String[] args) {
1616
combo.pack();
1717
shell.pack();
1818
shell.open();
19-
while (!display.isDisposed()) {
19+
while (!shell.isDisposed()) {
2020
if (!display.readAndDispatch()) {
2121
display.sleep();
2222
}

de.vogella.swt/src/de/vogella/swt/widgets/LinkExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void main(String[] args) {
1616
link.pack();
1717
shell.pack();
1818
shell.open();
19-
while (!display.isDisposed()) {
19+
while (!shell.isDisposed()) {
2020
if (!display.readAndDispatch()) {
2121
display.sleep();
2222
}

de.vogella.swt/src/de/vogella/swt/widgets/MouseListenerExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void widgetSelected(SelectionEvent e) {
2424
});
2525
shell.pack();
2626
shell.open();
27-
while (!display.isDisposed()) {
27+
while (!shell.isDisposed()) {
2828
if (!display.readAndDispatch()) {
2929
display.sleep();
3030
}

de.vogella.swt/src/de/vogella/swt/widgets/SWTTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void main(String[] args) {
4242
shell.open ();
4343

4444
shell.open();
45-
while (!display.isDisposed()) {
45+
while (!shell.isDisposed()) {
4646
if (!display.readAndDispatch()) {
4747
display.sleep();
4848
}

de.vogella.swt/src/de/vogella/swt/widgets/TreeMenuTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void widgetSelected(SelectionEvent event) {
3838
tree.setMenu(menu);
3939
shell.pack();
4040
shell.open();
41-
while (!display.isDisposed()) {
41+
while (!shell.isDisposed()) {
4242
if (!display.readAndDispatch()) {
4343
display.sleep();
4444
}

0 commit comments

Comments
 (0)