Bug 187019 - [FieldAssist] API - add API to programmatically select a proposal in the popup
Summary: [FieldAssist] API - add API to programmatically select a proposal in the popup
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 10:47 EDT by Henry CLA
Modified: 2019-09-06 16:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry CLA 2007-05-15 10:47:11 EDT
It would be really nice if it will be possible to set selection in FieldAssist's dropdown list.
So could you please change visibility of ContentProposalAdapter.selectProposal(int index) to public.
Comment 1 Susan McCourt CLA 2007-05-15 18:04:33 EDT
API is frozen for 3.3, but we can consider this for next round
Comment 2 Susan McCourt CLA 2007-06-28 15:45:16 EDT
will consider for 3.4
Comment 3 Susan McCourt CLA 2007-09-06 12:09:12 EDT
investigate/fix for M3.
Comment 4 Susan McCourt CLA 2007-09-26 13:17:08 EDT
Doing this is a bit more involved than merely changing method visibility.  The ContentProposalPopup implementation is private, so any API provided would have to be at the ContentProposalAdapter level.  Further, using indexes as the specification for selection in the API is a bit vague since there are issues of filtering to take into account.  An index would be rather short lived and we would have to define the life cycle of the API...does it mean set the selection the next time the popup is opened?  select only if opened?  etc. etc.  Would you be calling this when receiving a listener event (popup opened?)

Is this something contextual to the state of the control and popup or is it something where the proposal provider itself could provide information about the default selection.  

Bottom line is that defining the behavior/life cycle of the API is rather detailed and I would need to understand the end user scenario you are trying to accomplish so that I can determine if this is something of general purpose.
Comment 5 Susan McCourt CLA 2007-09-27 15:32:02 EDT
Removing milestone and marking WONTFIX.  

I don't see any user scenarios where forcing a selection really makes sense. It's really outside of the model of the field assist popup.

If what you are after is pattern matching and ensuring that the closest match of a particular pattern is the one selected, then this should be done at the level of ContentProposalAdapter.  For example, platform text achieves this with the RegExpContentProposalAdapter, by ensuring that the order of the proposals always puts the best match first.

Please reopen if I am misunderstanding the request.
Comment 6 Henry CLA 2007-11-19 07:05:08 EST
I'm implementing the tool for working with exchanges and use content assist for price fields. And want to say that it's very natural for traders to see in content assist something like:

<current_price> - 3
<current_price> - 2
<current_price> - 1
<current_price>       <-- default selection
<current_price> + 1
<current_price> + 2
<current_price> + 3

A lot of traders use to work in this way. The only one alternative I could see at the moment is to use the following:

<current_price>       <-- default selection
<current_price> + 1
<current_price> + 2
<current_price> + 3
<current_price> - 3
<current_price> - 2
<current_price> - 1

in this case up/down arrows will work in the same way but don't you agree that first list looks much more natural even for ordinary people.
Comment 7 Susan McCourt CLA 2009-07-09 17:19:33 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:14:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.