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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java

Issue 766323002: Compressed/optimized navigation notification. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates for review comments. Created 6 years 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/internal/search/ui/FindReferencesAction_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
index f0fcd00f046925cf72b38055663fd2adb3fb44ea..e8574d8185192f1d08e41a8c6f703652097e1d62 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
@@ -19,6 +19,7 @@ import com.google.dart.server.FindElementReferencesConsumer;
import com.google.dart.server.FindMemberReferencesConsumer;
import com.google.dart.server.generated.types.Element;
import com.google.dart.server.generated.types.NavigationRegion;
+import com.google.dart.server.generated.types.NavigationTarget;
import com.google.dart.server.generated.types.SearchResult;
import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.core.analysis.model.AnalysisServerNavigationListener;
@@ -224,7 +225,7 @@ public class FindReferencesAction_NEW extends AbstractDartSelectionAction_NEW im
}
private void updateSelectedElement() {
- Element[] elements = NewSelectionConverter.getNavigationTargets(file, selectionOffset);
- setEnabled(elements.length != 0);
+ NavigationTarget[] targets = NewSelectionConverter.getNavigationTargets(file, selectionOffset);
+ setEnabled(targets.length != 0);
}
}

Powered by Google App Engine
This is Rietveld 408576698