Java Code Examples for org.eclipse.jdt.ui.text.java.CompletionProposalCollector#setIgnored()
The following examples show how to use
org.eclipse.jdt.ui.text.java.CompletionProposalCollector#setIgnored() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavaNoTypeCompletionProposalComputer.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
@Override protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) { CompletionProposalCollector collector= super.createCollector(context); collector.setIgnored(CompletionProposal.ANNOTATION_ATTRIBUTE_REF, false); collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_DECLARATION, false); collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION, false); collector.setIgnored(CompletionProposal.FIELD_REF, false); collector.setIgnored(CompletionProposal.FIELD_REF_WITH_CASTED_RECEIVER, false); collector.setIgnored(CompletionProposal.KEYWORD, false); collector.setIgnored(CompletionProposal.LABEL_REF, false); collector.setIgnored(CompletionProposal.LOCAL_VARIABLE_REF, false); collector.setIgnored(CompletionProposal.METHOD_DECLARATION, false); collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE, false); collector.setIgnored(CompletionProposal.METHOD_REF, false); collector.setIgnored(CompletionProposal.CONSTRUCTOR_INVOCATION, false); collector.setIgnored(CompletionProposal.METHOD_REF_WITH_CASTED_RECEIVER, false); collector.setIgnored(CompletionProposal.PACKAGE_REF, false); collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION, false); collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION, false); return collector; }
Example 2
Source File: JavaAllCompletionProposalComputer.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
@Override protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) { CompletionProposalCollector collector= super.createCollector(context); collector.setIgnored(CompletionProposal.ANNOTATION_ATTRIBUTE_REF, false); collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_DECLARATION, false); collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION, false); collector.setIgnored(CompletionProposal.FIELD_REF, false); collector.setIgnored(CompletionProposal.FIELD_REF_WITH_CASTED_RECEIVER, false); collector.setIgnored(CompletionProposal.KEYWORD, false); collector.setIgnored(CompletionProposal.LABEL_REF, false); collector.setIgnored(CompletionProposal.LOCAL_VARIABLE_REF, false); collector.setIgnored(CompletionProposal.METHOD_DECLARATION, false); collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE, false); collector.setIgnored(CompletionProposal.METHOD_REF, false); collector.setIgnored(CompletionProposal.CONSTRUCTOR_INVOCATION, false); collector.setIgnored(CompletionProposal.METHOD_REF_WITH_CASTED_RECEIVER, false); collector.setIgnored(CompletionProposal.PACKAGE_REF, false); collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION, false); collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION, false); collector.setIgnored(CompletionProposal.TYPE_REF, false); return collector; }
Example 3
Source File: JsniCompletionProposalCollector.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
public static CompletionProposalCollector createPackageAndTypeProposalCollector( ICompilationUnit cu, int refOffset, int refLength) { CompletionProposalCollector collector = new JsniCompletionProposalCollector( cu, refOffset, refLength); collector.setIgnored(CompletionProposal.METHOD_REF, true); collector.setIgnored(CompletionProposal.FIELD_REF, true); return collector; }
Example 4
Source File: JavadocCompletionProposalComputer.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) { CompletionProposalCollector collector= super.createCollector(context); collector.setIgnored(CompletionProposal.JAVADOC_TYPE_REF, false); collector.setIgnored(CompletionProposal.JAVADOC_FIELD_REF, false); collector.setIgnored(CompletionProposal.JAVADOC_METHOD_REF, false); collector.setIgnored(CompletionProposal.JAVADOC_PARAM_REF, false); collector.setIgnored(CompletionProposal.JAVADOC_VALUE_REF, false); collector.setIgnored(CompletionProposal.JAVADOC_BLOCK_TAG, false); collector.setIgnored(CompletionProposal.JAVADOC_INLINE_TAG, false); collector.setIgnored(CompletionProposal.TYPE_REF, false); collector.setIgnored(CompletionProposal.FIELD_REF, false); collector.setIgnored(CompletionProposal.METHOD_REF, false); return collector; }
Example 5
Source File: JavaTypeCompletionProposalComputer.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
@Override protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) { CompletionProposalCollector collector= super.createCollector(context); collector.setIgnored(CompletionProposal.TYPE_REF, false); return collector; }