Community
Participate
Working Groups
Currently the only way to force ContentProposalAdapter to retrieve proposals from the IContentProposalProvider seems to be to close and reopen the proposal pop-up. (`createDialogArea()` retrieves the proposals) I'm currently working on an issue[0] that would really benefit from the ability to update the proposals while the pop-up is open. I have two suggestions for a possible solution: 1. Add a flag/toggle that lets the ContentProposalAdapter register a listener on the IContentProposalProvider, that gets triggered when IContentProposalProvider#setProposals gets called. The listener then calls recomputeProposals(). 2. Make recomputeProposals() protected, like it is already the case for openProposalPopup() and closeProposalPopup(). This way extending classes can implement behavior as they see fit. What do you think? [0] https://bugs.eclipse.org/bugs/show_bug.cgi?id=538480#c5 https://bugs.eclipse.org/bugs/attachment.cgi?id=276099
Viewer has the #refresh method. I suggest adding a refresh method ContentProposalAdapter which calls into recomputeProposals(). WDYT?
New Gerrit change created: https://git.eclipse.org/r/130622
Gerrit change https://git.eclipse.org/r/130622 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=09b3066ea028e4313140866c15256480f12973bb
Thanks, Fabian.
New Gerrit change created: https://git.eclipse.org/r/131017
Gerrit change https://git.eclipse.org/r/131017 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8b7161df6372e5b20dabf08b029ea2589de4f549
I see API errors now. Please fix org.eclipse.jface version and @Since on org.eclipse.jface.fieldassist.ContentProposalAdapter.refresh()
New Gerrit change created: https://git.eclipse.org/r/131042
(In reply to Andrey Loskutov from comment #7) > I see API errors now. Please fix org.eclipse.jface version and @Since on > org.eclipse.jface.fieldassist.ContentProposalAdapter.refresh() (In reply to Eclipse Genie from comment #8) > New Gerrit change created: https://git.eclipse.org/r/131042 I can't see it, I need UI projects error free.
(In reply to Andrey Loskutov from comment #9) > (In reply to Andrey Loskutov from comment #7) > > I see API errors now. Please fix org.eclipse.jface version and @Since on > > org.eclipse.jface.fieldassist.ContentProposalAdapter.refresh() > I can't see it, I need UI projects error free. I'm unable to get an API baseline error with Build id: I20181007-1800. Even after several clean builds. API baseline points to 4.9. I see several API related fixes in PDE in the history, will update to yesterdays build.
A new method was added to an API class, so it must be minor segment update.
(In reply to Lars Vogel from comment #10) > (In reply to Andrey Loskutov from comment #9) > > (In reply to Andrey Loskutov from comment #7) > I'm unable to get an API baseline error with Build id: I20181007-1800. Even > after several clean builds. API baseline points to 4.9. I see several API > related fixes in PDE in the history, will update to yesterdays build. Build id: I20181016-1800 shows the error also for me.
Gerrit change https://git.eclipse.org/r/131042 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=eccaf5803e13ca4c3250515e67fcc35e37ebf478