Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » autocompletion ICellEditor (used in a NatTableEditor)
autocompletion ICellEditor (used in a NatTableEditor) [message #817087] Fri, 09 March 2012 16:17 Go to next message
Olivier Melois is currently offline Olivier MeloisFriend
Messages: 14
Registered: March 2012
Junior Member
Hello,

I'm creating a table to display some elements of my model. In order to do so, I'm using a NatTableEditor. I would like some of my cells to be editable simply by editing the text their label, with an auto-completion feature.

For instance, let's say my model contains a object named Renault from a class Car.

The user clicks in the cell of the NatTable that can display Cars. He starts writing "Re" and then thanks to the completion, the text becomes "Renault". By pressing enter, the cell is linked to the Renault EObject.

Does it seem possible ? Has it been done in an existing ICellEditor ?

Thank you for your answers.

Olivier
Re: autocompletion ICellEditor (used in a NatTableEditor) [message #817201 is a reply to message #817087] Fri, 09 March 2012 19:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
EMF's properties page use cell editors.

On 09/03/2012 5:17 PM, Olivier Mélois wrote:
> Hello,
> I'm creating a table to display some elements of my model. In order to
> do so, I'm using a NatTableEditor. I would like some of my cells to be
> editable simply by editing the text their label, with an
> auto-completion feature.
> For instance, let's say my model contains a object named Renault from
> a class Car.
> The user clicks in the cell of the NatTable that can display Cars. He
> starts writing "Re" and then thanks to the completion, the text
> becomes "Renault". By pressing enter, the cell is linked to the
> Renault EObject.
>
> Does it seem possible ? Has it been done in an existing ICellEditor ?
> Thank you for your answers.
> Olivier


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: autocompletion ICellEditor (used in a NatTableEditor) [message #820606 is a reply to message #817087] Wed, 14 March 2012 10:29 Go to previous message
Gregoire Dupe is currently offline Gregoire DupeFriend
Messages: 75
Registered: September 2009
Location: France
Member
Hello,

> Does it seem possible ?

Yes, it seems. The auto-completion should have to be implemented in a dedicated SWT component and this SWT component has to be declared as an EMF Facet cell editor.

> Has it been done in an existing ICellEditor ?

As far as I know, not in the EMF Facet project. There is a few documentation in the following documentation page : http://help.eclipse.org/indigo/topic/org.eclipse.emf.facet.widgets.nattable.doc/devdoc.html?path=23_1_0_2#How_to_add_your_own_cell_editors

Regards,
Gregoire Dupe
Previous Topic:[emffacet] Drop a model element onto a FacetReferenceColumn
Next Topic:[EEF] Generation of Containment References with upper bound = 1
Goto Forum:
  


Current Time: Wed Apr 24 20:37:57 GMT 2024

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

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

Back to the top