diff options
author | Paul Pazderski | 2019-06-03 14:40:53 +0000 |
---|---|---|
committer | Paul Pazderski | 2019-06-10 13:37:19 +0000 |
commit | 1f251edf602f89449cb3c484a6fd9218d9dcc2aa (patch) | |
tree | c565802d9abf946b2f0626cf5ad217549dba6aa4 /examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java | |
parent | 31cbcbeeafa4f6fc390280ed727b89c0b5c4373b (diff) | |
download | eclipse.platform.swt-1f251edf602f89449cb3c484a6fd9218d9dcc2aa.tar.gz eclipse.platform.swt-1f251edf602f89449cb3c484a6fd9218d9dcc2aa.tar.xz eclipse.platform.swt-1f251edf602f89449cb3c484a6fd9218d9dcc2aa.zip |
Bug 547936 - [Snippets] Every Snippet should set a window title
Without title it is unnecessary hard to distinguish multiple running
Snippets.
Change-Id: I7503399d9a3289c16051fc4203d182fb9fb5555f
Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java index 778b32bf54..3b76456d49 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java @@ -16,6 +16,10 @@ package org.eclipse.swt.snippets; import java.text.*; import java.util.*; +import org.eclipse.swt.*; +import org.eclipse.swt.layout.*; +import org.eclipse.swt.widgets.*; + /* * Table example snippet: sort a table by column * @@ -24,15 +28,12 @@ import java.util.*; * * @since 3.2 */ -import org.eclipse.swt.*; -import org.eclipse.swt.layout.*; -import org.eclipse.swt.widgets.*; - public class Snippet2 { public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); + shell.setText("Snippet 2"); shell.setLayout(new FillLayout()); final Table table = new Table(shell, SWT.BORDER); table.setHeaderVisible(true); |