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
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:cell traverse
Next Topic:TableViewer: Sorting on multiple columns
Goto Forum:
  


Current Time: Sat Sep 20 10:15:49 GMT 2014

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

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