Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] configure content-assist preferences

It is possible with the mentioned APIs, but that has to be done in code.

Dani



From:        Martin Lippert <mlippert@xxxxxxxxx>
To:        "Eclipse JDT UI developers list." <jdt-ui-dev@xxxxxxxxxxx>
Date:        10.05.2016 13:08
Subject:        Re: [jdt-ui-dev] configure content-assist preferences
Sent by:        jdt-ui-dev-bounces@xxxxxxxxxxx




Hey Dani,

thanks for your help. For my use case I would prefer to somehow not change the user settings but to change the defaults (just for the contributed proposal category).
Looks like that is not possible at the moment… Anyhow, thanks a lot for your help!!!

Cheers,
-Martin






> Am 10.05.2016 um 11:50 schrieb Daniel Megert <daniel_megert@xxxxxxxxxx>:
>
> Hi Martin
>
> I'd also have to check what it does exactly. With each reported incident we added additional fallbacks to avoid breaking the user.
>
> You can declare categories via plugin,xml, and users can configure it via Java > Editor > Content Assist > Advanced preference page.
>
> Dani
>
>
>
> From:        Martin Lippert <mlippert@xxxxxxxxx>
> To:        "Eclipse JDT UI developers list." <jdt-ui-dev@xxxxxxxxxxx>
> Date:        10.05.2016 11:43
> Subject:        Re: [jdt-ui-dev] configure content-assist preferences
> Sent by:        jdt-ui-dev-bounces@xxxxxxxxxxx
>
>
>
> Hey Dani,
>
> thanks for the pointers, much appreciated.
> So in case I add an additional category that is not available, JDT and/or content assist will throw an exception?
>
> It would be great if I could declaratively define these settings in the extension where I define the category itself. That is not possible at the moment, right?
>
> Cheers,
> -Martin
>
>
> > Take a look at the following APIs:
> >
> > org.eclipse.jdt.ui.PreferenceConstants#getExcludedCompletionProposalCategories()
> > org.eclipse.jdt.ui.PreferenceConstants#setExcludedCompletionProposalCategories(String[])
> >
> > Just a warning that this can cause troubles to clients, especially when they install your bundle and in the next Eclipse version it's no longer installed: content assist might be broken.
> >
> > Dani
> >
> >
> >
> > From:        Martin Lippert <mlippert@xxxxxxxxx>
> > To:        jdt-ui-dev@xxxxxxxxxxx
> > Date:        10.05.2016 10:49
> > Subject:        [jdt-ui-dev] configure content-assist preferences
> > Sent by:        jdt-ui-dev-bounces@xxxxxxxxxxx
> >
> >
> >
> > Hey!
> >
> > I have contributed a javaCompletionProposalComputer in its own category and I would like that configure the preferences for that, so that:
> >
> > - it is disabled in the list if default proposals
> > - it is enabled at a certain position in the list of cycle-through content-assists
> >
> > Is that possible somehow? And if so, how?
> >
> > Thanks a lot for your help!!!
> > -Martin
> >
> >
> > _______________________________________________
> > jdt-ui-dev mailing list
> > jdt-ui-dev@xxxxxxxxxxx
> > To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> >
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev
> >
> >
> >
> > _______________________________________________
> > jdt-ui-dev mailing list
> > jdt-ui-dev@xxxxxxxxxxx
> > To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> >
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev
>
> _______________________________________________
> jdt-ui-dev mailing list
> jdt-ui-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev
>
>
>
> _______________________________________________
> jdt-ui-dev mailing list
> jdt-ui-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev

_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev


Back to the top