Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Extending Table Control - improved support for tables in 1.8.0?
[EMF Forms] Extending Table Control - improved support for tables in 1.8.0? [message #1726177] Thu, 10 March 2016 05:55 Go to next message
Eclipse UserFriend
Hi,

I would like to extend the existing TableControl with the following:
- remove the 'Link' button
- custom initialization of the domain elements in the 'Add' buttom
- make rows movable, either by Up/Down buttons, context menu, or drag
and drop
- possibly add another column

I'm not sure what the best approach would be to implement that. Also, I
noticed that TableControl is marked as deprecated.

From looking at the release notes for 1.8.0, I get the impression that
support for tables has been improved. Is an upgrade to 1.8.0
recommended? I attempted to upgrade recently, but it wasn't quite clear
to me what I had to do. It looks like the migration guide hasn't been
updated yet.

Current EMF Forms SDK version we're using is 1.7.2.

Thanks in advance!

Cheers,

Michael
Re: [EMF Forms] Extending Table Control - improved support for tables in 1.8.0? [message #1726186 is a reply to message #1726177] Thu, 10 March 2016 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

As you mentioned the TableControl class is deprecated. The org.eclipse.emf.ecp.view.spi.table.swt.TableControlSWTRenderer is used instead.
There are some protected methods like #addButtonsToButtonBar(Composite), #addRow(EClass, EObject, EStructuralFeature) or #getTableViewer() which should allow you to achieve all the customizations mentioned above. So I would suggest to subclass from the TableControlSWTRenderer

Cheers
Re: [EMF Forms] Extending Table Control - improved support for tables in 1.8.0? [message #1726216 is a reply to message #1726186] Thu, 10 March 2016 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Johannes,

Thanks for your answer, I will do that.

Cheers

Michael

On 10.03.2016 13:32, Johannes Faltermeier wrote:
> Hi,
> As you mentioned the TableControl class is deprecated. The
> org.eclipse.emf.ecp.view.spi.table.swt.TableControlSWTRenderer is used
> instead. There are some protected methods like
> #addButtonsToButtonBar(Composite), #addRow(EClass, EObject,
> EStructuralFeature) or #getTableViewer() which should allow you to
> achieve all the customizations mentioned above. So I would suggest to
> subclass from the TableControlSWTRenderer
>
> Cheers
Re: [EMF Forms] Extending Table Control - improved support for tables in 1.8.0? [message #1784570 is a reply to message #1726216] Thu, 29 March 2018 08:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi
Quote:
As you mentioned the TableControl class is deprecated. The org.eclipse.emf.ecp.view.spi.table.swt.TableControlSWTRenderer is used instead.

I have had the same problem, my EMF Forms's version is 1.12.0, but I can not find this class. Which package includes this class?
And could you give me the API of EMF Forms?

Best regards.
Zhou

Re: [EMF Forms] Extending Table Control - improved support for tables in 1.8.0? [message #1784572 is a reply to message #1784570] Thu, 29 March 2018 08:26 Go to previous message
Eclipse UserFriend
Sorry to disturb you, I have found my problem, and the class have been imported.
Previous Topic:Model as a Backend?
Next Topic:[EMF Forms] Question about Table Custom Control
Goto Forum:
  


Current Time: Wed Jun 18 02:00:11 EDT 2025

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

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

Back to the top