Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Searchable Combobox for Features
Searchable Combobox for Features [message #429891] Wed, 06 May 2009 13:28 Go to next message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
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
Re: Searchable Combobox for Features [message #429892 is a reply to message #429891] Wed, 06 May 2009 13:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=210176

Tom

Dirk Hoffmann schrieb:
> 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
Re: Searchable Combobox for Features [message #429895 is a reply to message #429891] Wed, 06 May 2009 13:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Searchable Combobox for Features [message #429938 is a reply to message #429895] Thu, 07 May 2009 06:38 Go to previous messageGo to next message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
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
Re: Searchable Combobox for Features [message #429951 is a reply to message #429938] Thu, 07 May 2009 11:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090202080506080502000400
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

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>


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

--------------090202080506080502000400
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dirk,<br>
<br>
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...<br>
<br>
You can create your own cell editor using this recipe.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] New Documentation for Custom Store Developers
Next Topic:Error in Using Teneo Hibernate with GMF
Goto Forum:
  


Current Time: Thu Apr 25 03:39:30 GMT 2024

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

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

Back to the top