diff options
author | donald.g.dunne | 2014-01-08 22:58:31 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2014-03-04 19:41:49 +0000 |
commit | 99e476025d9f6c70508cea666d332bb110e94d2b (patch) | |
tree | e5a3414df238dba443ff83b913b49fb781173053 /plugins/org.eclipse.osee.framework.ui.swt | |
parent | a21b683d52c3477b867d4b9cd2d1233f4711c0fc (diff) | |
download | org.eclipse.osee-99e476025d9f6c70508cea666d332bb110e94d2b.tar.gz org.eclipse.osee-99e476025d9f6c70508cea666d332bb110e94d2b.tar.xz org.eclipse.osee-99e476025d9f6c70508cea666d332bb110e94d2b.zip |
feature[ats_DQ40X]: Display better client connection messages
Change-Id: I8f5b20486c4324d30ec1037dc19f8d781782b8ef
Diffstat (limited to 'plugins/org.eclipse.osee.framework.ui.swt')
-rw-r--r-- | plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/ExceptionComposite.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/ExceptionComposite.java b/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/ExceptionComposite.java index 3ceaf64b450..e88112ed5f3 100644 --- a/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/ExceptionComposite.java +++ b/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/ExceptionComposite.java @@ -27,14 +27,17 @@ import org.eclipse.ui.PlatformUI; public class ExceptionComposite extends Composite { public ExceptionComposite(Composite parent, Exception ex) { + this(parent, ex.toString()); + } + + public ExceptionComposite(Composite parent, String message) { super(parent, SWT.NONE); setLayout(ALayout.getZeroMarginLayout(1, true)); setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - - createErrorArea(this, ex); + createErrorArea(this, message); } - private Control createErrorArea(Composite parent, Exception ex) { + private Control createErrorArea(Composite parent, String message) { Composite composite = new Composite(parent, SWT.BORDER); composite.setLayout(new GridLayout(2, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); @@ -51,7 +54,7 @@ public class ExceptionComposite extends Composite { text.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_RED)); text.setBackground(Displays.getSystemColor(SWT.COLOR_LIST_BACKGROUND)); text.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, true)); - text.setText(ex.toString()); + text.setText(message); return composite; } } |