diff options
| author | Curtis Windatt | 2013-06-27 19:04:47 +0000 |
|---|---|---|
| committer | Curtis Windatt | 2013-06-27 19:04:47 +0000 |
| commit | e8a5e91f3e602ae6fb70436132d6c847b8ddfe16 (patch) | |
| tree | 002c42c3557e2eba681018ac6eecb128fec48c46 | |
| parent | ebc347fe64befc09351833f8b0ec80f5dc255884 (diff) | |
| download | eclipse.pde.ui-e8a5e91f3e602ae6fb70436132d6c847b8ddfe16.tar.gz eclipse.pde.ui-e8a5e91f3e602ae6fb70436132d6c847b8ddfe16.tar.xz eclipse.pde.ui-e8a5e91f3e602ae6fb70436132d6c847b8ddfe16.zip | |
Bug 409907 - Mail Template, label "From:" is shown as "Fro"
Change-Id: I7fdeb61db4ce0dad3494e3f8bc5bfe3cfe72fb41
| -rw-r--r-- | ui/org.eclipse.pde.ui.templates/templates_3.3/mail/java/View.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ui/org.eclipse.pde.ui.templates/templates_3.3/mail/java/View.java b/ui/org.eclipse.pde.ui.templates/templates_3.3/mail/java/View.java index 9b87452287..8f43a291a5 100644 --- a/ui/org.eclipse.pde.ui.templates/templates_3.3/mail/java/View.java +++ b/ui/org.eclipse.pde.ui.templates/templates_3.3/mail/java/View.java @@ -41,15 +41,19 @@ public class View extends ViewPart { // setup bold font Font boldFont = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT); - Label l = new Label(banner, SWT.WRAP); + Label l = new Label(banner, SWT.NONE); l.setText("Subject:"); l.setFont(boldFont); + l.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false)); + l = new Label(banner, SWT.WRAP); l.setText("This is a message about the cool Eclipse RCP!"); + l.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, false)); - l = new Label(banner, SWT.WRAP); + l = new Label(banner, SWT.NONE); l.setText("From:"); l.setFont(boldFont); + l.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false)); final Link link = new Link(banner, SWT.NONE); link.setText("<a>nicole@mail.org</a>"); @@ -58,12 +62,17 @@ public class View extends ViewPart { MessageDialog.openInformation(getSite().getShell(), "Not Implemented", "Imagine the address book or a new message being created now."); } }); + link.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, false)); - l = new Label(banner, SWT.WRAP); + l = new Label(banner, SWT.NONE); l.setText("Date:"); l.setFont(boldFont); + l.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false)); + l = new Label(banner, SWT.WRAP); l.setText("10:34 am"); + l.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, false)); + // message contents messageText = new Text(top, SWT.MULTI | SWT.WRAP); messageText.setText("This RCP Application was generated from the PDE Plug-in Project wizard. This sample shows how to:\n"+ |
