Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Different behavior for right, left arrow keys when Quick Assist is invoked
Different behavior for right, left arrow keys when Quick Assist is invoked [message #534724] Thu, 20 May 2010 07:20
Sameer  is currently offline Sameer Friend
Messages: 5
Registered: April 2010
Junior Member
I'm implementing Quick Assists for my editor and seeing different behavior when left, right arrow keys are pressed after opening the quick assist pop-up.
Basically, my proposals are implementing ICompletionProposalExtension2. So, now if I press the left arrow key, then it re-computes the proposals and things work fine. But for right arrow key it tries to validate the existing proposals and does not re-compute, so there are no new proposals added.

My question is - Why is there a different way in computing the proposals for left key and right key? Also, for the right arrow key, if any of the proposal is not ICompletionProposalExtension2 or ICompletionProposalExtension, only then it re-computes every thing.

I think this is a wrong approach as no new proposals will be added if the existing proposals implements ICompletionProposalExtension2.

The method in question is - org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeFilteredProposals()

Can someone explain this discrepancy in behavior?

[Updated on: Thu, 20 May 2010 10:18]

Report message to a moderator

Previous Topic:CheckboxTreeViewer with custom input
Next Topic:Why doesn't IAction extend java.lang.Runnable?
Goto Forum:
  


Current Time: Thu Apr 25 06:01:27 GMT 2024

Powered by FUDForum. Page generated in 0.03380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top