Dirk,
The combo is already showing choices that are filtered so I suppose
it's just a matter of supporting patterns rather than only direct
matching...
You can create your own cell editor using this recipe. Perhaps the
FeatureEditorDialog will make you happier. It does use a pattern...
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application
Dirk Hoffmann wrote:
Ah,
thanks - didn't realize that.
Unfortunately it's not quite what we want for our customers.
The existing solution seems to match the character I type with the
first characters of the entries and if I repeat that character iterates
through them.
The ideal solution would be what you get when typing Ctrl-T in the
Java-Editor - you know that dialog that allows you to find java classes
and interfaces. Start with a "*" and you can match against substrings
embedded into the entries.
So still the question remains how to tune-up the combo box cell editor.
BTW: Ordered the book but it hasn't arrived yet.
Best Regards,
Dirk
Ed Merks schrieb:
Dirk,
The existing cell editors already support filtering as you type...
Dirk Hoffmann wrote:
Hi,
we're working with the generated .edit and .editor plug-ins which we
enhance step-by-step to get the functionality we need.
Our users are faced with quite large menus when they attempt to specify
reference features in the properties view. Then they need to scroll up
and down in order to find the right target item for the reference.
We would like to provide them with a search feature, maybe as a filter
that reduces the number of presented items as they type in some
substring of the desired item.
The default cell editor for references is implemented through the
ExtendedComboBoxCellEditor class I believe.
If we created our own CellEditor where would we have to hook that in so
that it gets called when the user click on the reference feature?
Does somebody know about a SearchableComboBoxCellEditor (or whatever it
maybe called)?
Thanks and Regards,
Dirk
|