aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-09-29 12:53:45 -0700
committerSiva Velusamy <vsiva@google.com>2011-09-29 12:53:45 -0700
commit3543c34223c4a876b8efc5bb0c7e8cb13b8f1dd1 (patch)
tree3df1ff4cf8a0ab91a0805a57dbd1f852aa42e1f2 /ddms
parent25f755d0f0f8a1c65d961a1d4a2ad508aacf8af8 (diff)
downloadsdk-3543c34223c4a876b8efc5bb0c7e8cb13b8f1dd1.zip
sdk-3543c34223c4a876b8efc5bb0c7e8cb13b8f1dd1.tar.gz
sdk-3543c34223c4a876b8efc5bb0c7e8cb13b8f1dd1.tar.bz2
Use a text box instead of a browser in tooltip area.
Change-Id: Ica610ef4cefffaef3b6404a425c8b4551e741676
Diffstat (limited to 'ddms')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java
index aac9124..607b5b2 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java
@@ -37,7 +37,6 @@ import org.eclipse.jface.viewers.ViewerCell;
import org.eclipse.jface.window.ToolTip;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.TextTransfer;
@@ -705,19 +704,14 @@ public final class LogCatPanel extends SelectionDependentPanel
l.verticalSpacing = 0;
comp.setLayout(l);
- // Use a browser widget since it automatically provides both wrapping text,
- // and adds a scroll bar if necessary
- Browser browser = new Browser(comp, SWT.BORDER);
- browser.setText(getBrowserText(cell.getElement()));
- browser.setLayoutData(new GridData(500, 150));
+ Text text = new Text(comp, SWT.BORDER | SWT.V_SCROLL | SWT.WRAP);
+ text.setEditable(false);
+ text.setText(cell.getElement().toString());
+ text.setLayoutData(new GridData(500, 150));
return comp;
}
- private String getBrowserText(Object element) {
- return String.format("<html><body><code>%s</code></body></html>", element.toString());
- }
-
@Override
public boolean isHideOnMouseDown() {
return false;