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

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

Issue 17431004: New UI for Find command: find-as-you-type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java (revision 24253)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java (working copy)
@@ -130,6 +130,7 @@
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.ITextViewerExtension2;
import org.eclipse.jface.text.ITextViewerExtension5;
+import org.eclipse.jface.text.MarkSelection;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.TextSelection;
@@ -1485,6 +1486,11 @@
if (selection == null) {
return new DartSelection(DartEditor.this, null, -1, 0);
}
+ if (selection instanceof MarkSelection) {
+ MarkSelection sel = (MarkSelection) selection;
+ IDocument doc = sel.getDocument();
+ return new DartSelection(DartEditor.this, doc, sel.getOffset(), sel.getLength());
+ }
ITextSelection textSelection = (ITextSelection) selection;
// prepare document
ISourceViewer sourceViewer = getSourceViewer();
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.ui/plugin.xml ('k') | editor/tools/plugins/com.xored.glance.ui/.classpath » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698