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

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

Issue 69883003: Issue 249. Show documentation for highlighted code completion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/dart/DartTypeCompletionProposalComputer.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartTypeCompletionProposalComputer.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartTypeCompletionProposalComputer.java
index 54d6fe704a98afbfa2803098890e45675360eff6..670fada2fbac27ff0f2249231a4088fdcca18a25 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartTypeCompletionProposalComputer.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/dart/DartTypeCompletionProposalComputer.java
@@ -15,7 +15,6 @@ package com.google.dart.tools.ui.internal.text.dart;
import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.core.completion.CompletionProposal;
-import com.google.dart.tools.core.model.DartElement;
import com.google.dart.tools.core.model.DartModelException;
import com.google.dart.tools.core.model.DartProject;
import com.google.dart.tools.core.model.Type;
@@ -73,10 +72,10 @@ public class DartTypeCompletionProposalComputer extends DartCompletionProposalCo
Set proposed = new HashSet();
for (Iterator it = types.iterator(); it.hasNext();) {
AbstractDartCompletionProposal p = (AbstractDartCompletionProposal) it.next();
- DartElement element = p.getDartElement();
- if (element instanceof Type) {
- proposed.add(((Type) element).getElementName());
- }
+// DartElement element = p.getDartElement();
+// if (element instanceof Type) {
+// proposed.add(((Type) element).getElementName());
+// }
relevance = Math.min(relevance, p.getRelevance());
}

Powered by Google App Engine
This is Rietveld 408576698