| Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/LazyDartTypeCompletionProposal.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/LazyDartTypeCompletionProposal.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/LazyDartTypeCompletionProposal.java
|
| index a975bb4b463d57c080557e32e24212ade2d61f81..96a7383a65cb29b319851af91f169f30bd5c00de 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/LazyDartTypeCompletionProposal.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/completion/LazyDartTypeCompletionProposal.java
|
| @@ -17,7 +17,6 @@ import com.google.dart.tools.core.completion.CompletionProposal;
|
| import com.google.dart.tools.core.model.CompilationUnit;
|
| import com.google.dart.tools.core.model.DartModelException;
|
| import com.google.dart.tools.core.model.DartProject;
|
| -import com.google.dart.tools.core.model.Type;
|
| import com.google.dart.tools.internal.corext.util.QualifiedTypeNameHistory;
|
| import com.google.dart.tools.ui.ContextSensitiveImportRewriteContext;
|
| import com.google.dart.tools.ui.DartToolsPlugin;
|
| @@ -180,12 +179,13 @@ public class LazyDartTypeCompletionProposal extends LazyDartCompletionProposal {
|
|
|
| @Override
|
| protected ProposalInfo computeProposalInfo() {
|
| - if (fCompilationUnit != null) {
|
| - DartProject project = fCompilationUnit.getDartProject();
|
| - if (project != null) {
|
| - return new TypeProposalInfo(project, fProposal);
|
| - }
|
| - }
|
| + // TODO(scheglov) implement documentation comment
|
| +// if (fCompilationUnit != null) {
|
| +// DartProject project = fCompilationUnit.getDartProject();
|
| +// if (project != null) {
|
| +// return new TypeProposalInfo(project, fProposal);
|
| +// }
|
| +// }
|
| return super.computeProposalInfo();
|
| }
|
|
|
| @@ -328,13 +328,13 @@ public class LazyDartTypeCompletionProposal extends LazyDartCompletionProposal {
|
| * @throws DartModelException if anything goes wrong
|
| */
|
| protected final void rememberSelection() throws DartModelException {
|
| - Type lhs = fInvocationContext.getExpectedType();
|
| - Type rhs = (Type) getDartElement();
|
| - if (lhs != null && rhs != null) {
|
| - DartToolsPlugin.getDefault().getContentAssistHistory().remember(lhs, rhs);
|
| - }
|
| -
|
| - QualifiedTypeNameHistory.remember(getQualifiedTypeName());
|
| +// Type lhs = fInvocationContext.getExpectedType();
|
| +// Type rhs = (Type) getDartElement();
|
| +// if (lhs != null && rhs != null) {
|
| +// DartToolsPlugin.getDefault().getContentAssistHistory().remember(lhs, rhs);
|
| +// }
|
| +//
|
| +// QualifiedTypeNameHistory.remember(getQualifiedTypeName());
|
| }
|
|
|
| protected void updateReplacementWithParentheses(StringBuffer replacement) {
|
|
|