Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:55 Go to next message
Michael Gfeller is currently offline Michael GfellerFriend
Messages: 8
Registered: May 2015
Junior Member
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 12:32 Go to previous messageGo to next message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 101
Registered: December 2013
Senior Member

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


Johannes Faltermeier

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
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 14:53 Go to previous messageGo to next message
Michael Gfeller is currently offline Michael GfellerFriend
Messages: 8
Registered: May 2015
Junior Member
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 12:07 Go to previous messageGo to next message
zhang ph is currently offline zhang phFriend
Messages: 43
Registered: March 2017
Member
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 12:26 Go to previous message
zhang ph is currently offline zhang phFriend
Messages: 43
Registered: March 2017
Member
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: Thu Mar 28 13:30:27 GMT 2024

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

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

Back to the top