summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2013-06-27 15:04:47 (EDT)
committerCurtis Windatt2013-06-27 15:04:47 (EDT)
commite8a5e91f3e602ae6fb70436132d6c847b8ddfe16 (patch)
tree002c42c3557e2eba681018ac6eecb128fec48c46
parentebc347fe64befc09351833f8b0ec80f5dc255884 (diff)
downloadeclipse.pde.ui-e8a5e91f3e602ae6fb70436132d6c847b8ddfe16.zip
eclipse.pde.ui-e8a5e91f3e602ae6fb70436132d6c847b8ddfe16.tar.gz
eclipse.pde.ui-e8a5e91f3e602ae6fb70436132d6c847b8ddfe16.tar.bz2
Bug 409907 - Mail Template, label "From:" is shown as "Fro"
-rw-r--r--ui/org.eclipse.pde.ui.templates/templates_3.3/mail/java/View.java15
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 9b87452..8f43a29 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"+