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

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

Issue 10379012: Code completion improvements. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/text/dart/DartContentAssistInvocationContext.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/DartContentAssistInvocationContext.java (revision 7347)
+++ editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/DartContentAssistInvocationContext.java (working copy)
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, the Dart project authors.
+ * Copyright (c) 2012, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
@@ -39,6 +39,9 @@
* and expected to change significantly before reaching stability. It is being made available at
* this early stage to solicit feedback from pioneering adopters on the understanding that any code
* that uses this API will almost certainly be broken (repeatedly) as the API evolves.
+ *
+ * Implementation note: There is no need to override hashCode and equals, as we only add cached
+ * values shared across one assist invocation.
*/
public class DartContentAssistInvocationContext extends ContentAssistInvocationContext {
private final IEditorPart fEditor;
@@ -265,7 +268,7 @@
collector.setIgnored(CompletionProposal.METHOD_DECLARATION, true);
collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE, true);
collector.setIgnored(CompletionProposal.METHOD_REF, true);
- collector.setIgnored(CompletionProposal.PACKAGE_REF, true);
+ collector.setIgnored(CompletionProposal.LIBRARY_PREFIX, true);
collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION, true);
collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION, true);
collector.setIgnored(CompletionProposal.JAVADOC_BLOCK_TAG, true);
@@ -316,9 +319,4 @@
}
return fRHSHistory;
}
-
- /*
- * Implementation note: There is no need to override hashCode and equals, as we only add cached
- * values shared across one assist invocation.
- */
}

Powered by Google App Engine
This is Rietveld 408576698