Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » editable attribute combo box(editable combobox in generated EMF property editor )
editable attribute combo box [message #493564] Mon, 26 October 2009 22:52 Go to next message
No real name is currently offline No real nameFriend
Messages: 18
Registered: October 2009
Location: denmark
Junior Member
Hi,

Can some one tell me if I can tune the generated property editor (more exactly combo box), so that the combo box can be selected from a list of choices as well as edited directly by the user keystroke, like: JComboBox.setEditable(true);

I have tried to modify getChoiceofValues() method, but it seems not that easy.

Thanks in advance!

-ayia
Re: editable attribute combo box [message #493587 is a reply to message #493564] Tue, 27 October 2009 05:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Ayia,

There's no out of the box support for that. You'd need to follow this
recipe
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_ property_editor_in_a_generated_application
to create your own cell editor and then you'll have complete control.


wg@mci.sdu.dk wrote:
> Hi,
>
> Can some one tell me if I can tune the generated property editor (more
> exactly combo box), so that the combo box can be selected from a list
> of choices as well as edited directly by the user keystroke, like:
> JComboBox.setEditable(true);
>
> I have tried to modify getChoiceofValues() method, but it seems not
> that easy.
>
> Thanks in advance!
>
> -ayia


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF 2.4.1 with JRE 6.0_04
Next Topic:EMF.Edit's EditingDomain
Goto Forum:
  


Current Time: Tue Sep 24 10:18:47 GMT 2024

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

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

Back to the top