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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/DartTypeCompletionProposal.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/completion/DartTypeCompletionProposal.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/DartTypeCompletionProposal.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/DartTypeCompletionProposal.java
index 578d38e1199f528dbc4b4d5838f64e2a59ae8817..ff2117cb05a01d81b79bc4ca9342f58b82a54a29 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/DartTypeCompletionProposal.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/DartTypeCompletionProposal.java
@@ -13,6 +13,7 @@
*/
package com.google.dart.tools.ui.internal.text.completion;
+import com.google.dart.engine.element.Element;
import com.google.dart.tools.core.model.CompilationUnit;
import com.google.dart.tools.core.model.Type;
import com.google.dart.tools.ui.DartToolsPlugin;
@@ -46,7 +47,7 @@ public class DartTypeCompletionProposal extends DartCompletionProposal {
public DartTypeCompletionProposal(String replacementString, CompilationUnit cu,
int replacementOffset, int replacementLength, Image image, StyledString displayString,
- int relevance) {
+ int relevance, Element element) {
this(
replacementString,
cu,
@@ -55,12 +56,13 @@ public class DartTypeCompletionProposal extends DartCompletionProposal {
image,
displayString,
relevance,
- null);
+ null,
+ element);
}
public DartTypeCompletionProposal(String replacementString, CompilationUnit cu,
int replacementOffset, int replacementLength, Image image, StyledString displayString,
- int relevance, String fullyQualifiedTypeName) {
+ int relevance, String fullyQualifiedTypeName, Element element) {
this(
replacementString,
cu,
@@ -70,12 +72,13 @@ public class DartTypeCompletionProposal extends DartCompletionProposal {
displayString,
relevance,
fullyQualifiedTypeName,
+ element,
null);
}
public DartTypeCompletionProposal(String replacementString, CompilationUnit cu,
int replacementOffset, int replacementLength, Image image, StyledString displayString,
- int relevance, String fullyQualifiedTypeName,
+ int relevance, String fullyQualifiedTypeName, Element element,
DartContentAssistInvocationContext invocationContext) {
super(
replacementString,
@@ -85,6 +88,7 @@ public class DartTypeCompletionProposal extends DartCompletionProposal {
displayString,
relevance,
false,
+ element,
invocationContext);
fCompilationUnit = cu;
fFullyQualifiedTypeName = fullyQualifiedTypeName;

Powered by Google App Engine
This is Rietveld 408576698