Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartHover.java

Issue 140893014: Switch to using StyledText in hover. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartHover.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartHover.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartHover.java
index dc2d6c1d38950a7c1fd68bbce9d05df1edaf17c6..3669c75f8fa3e0f14be93aaabe4c0d4f6ccf7dbb 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartHover.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartHover.java
@@ -62,7 +62,6 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.texteditor.ITextEditor;
@@ -343,14 +342,14 @@ public class DartHover implements ITextHover, ITextHoverExtension, ITextHoverExt
private static class TextSection {
private final FormToolkit toolkit;
private final Section section;
- private final Text textWidget;
+ private final StyledText textWidget;
public TextSection(Composite parent, String title) {
toolkit = createToolkit(parent.getDisplay());
this.section = toolkit.createSection(parent, Section.TITLE_BAR);
GridDataFactory.create(section).grabHorizontal().fill();
section.setText(title);
- textWidget = new Text(section, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP);
+ textWidget = new StyledText(section, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP);
toolkit.adapt(textWidget, false, false);
section.setClient(textWidget);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698