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

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

Issue 311053005: Updates for the Outline API and use it in Editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java
index c8de43fa193831b2edaa04183149b650b7515cf2..2f5c9845c3e0806485895e07b084433b582b9bc6 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java
@@ -2612,8 +2612,8 @@ public abstract class DartEditor extends AbstractDecoratedTextEditor implements
return;
}
// prepare range
- int offset = outline.getOffset();
- int length = outline.getLength();
+ int offset = outline.getNameOffset();
+ int length = outline.getNameLength();
// prepare ISourceViewer
ISourceViewer sourceViewer = getSourceViewer();
if (sourceViewer == null) {
@@ -3977,7 +3977,7 @@ public abstract class DartEditor extends AbstractDecoratedTextEditor implements
AnalysisServerData analysisServerData = DartCore.getAnalysisServerData();
String file = getInputFilePath();
if (file != null) {
- analysisServerData.subscribeOutline(null, analysisServerOutlineListener);
+ analysisServerData.subscribeOutline(file, analysisServerOutlineListener);
}
}

Powered by Google App Engine
This is Rietveld 408576698