Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Disabling a IJavaCompletionProposalComputer as default

On Tue, Apr 7, 2020 at 12:08 PM Gayan Perera <gayanper@xxxxxxxxx> wrote:
>
> Hi Roland,
> Thanks for the tips, by the way this to work i need to have category like below right
>
>   <extension
>         id="javaChainProposalCategory"
>         name="%ChainProposalCategory"
>         point="org.eclipse.jdt.ui.javaCompletionProposalComputer">
>         <proposalCategory icon="icons/full/eview16/package.png"/>
>   </extension>
>   <extension
>         point="org.eclipse.jdt.ui.javaCompletionProposalComputer"
>         id="org.eclipse.jdt.ui.javaCompletionProposalComputer.chain">
>      <javaCompletionProposalComputer
>            activate="true"
>            categoryId="org.eclipse.jdt.ui.javaChainProposalCategory"
>            class="org.eclipse.jdt.internal.ui.text.java.ChainCompletionProposalComputer"
>            needsSortingAfterFiltering="false"
>            requiresUIThread="false">
>      </javaCompletionProposalComputer>
>   </extension>
> And should i add the category id in PreferenceConstants.CODEASSIST_EXCLUDED_CATEGORIES  ?

Yes, the completion proposal computer would need to be contributed through the
org.eclipse.jdt.ui.javaCompletionProposalComputer extension point. To disable it
by default from contributing to the first content assist invocation
popup, you'd need
to add it to CODEASSIST_EXCLUDED_CATEGORIES.

You might need to do more to ensure it's disabled on subsequent invocations (eg.
multiple ctrl+space) but the above property should be a good start.



Back to the top