Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Table Control : Column Width
[EMF Forms] Table Control : Column Width [message #1726986] Fri, 18 March 2016 02:25 Go to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hi There

I am using a Table Control.

1. Now I get Validation Column in the Table. I want to get rid of the
same. Is it possible. I have seen in your example that you dnt hav a
Validation Column.

2. Width of a Column : For certain columns i would like to fix the
width. Can that be specified ?

Regards
Malai
  • Attachment: pf-mgr.png
    (Size: 87.53KB, Downloaded 142 times)
Re: [EMF Forms] Table Control : Column Width [message #1727048 is a reply to message #1726986] Fri, 18 March 2016 12:59 Go to previous messageGo to next message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 101
Registered: December 2013
Senior Member

Hi,

1. The validation column will be shown for all tables which are not readonly. However you may create a template model including a TableValidationStyleProperty. Here you can influence the column width of the validation column, so you could set it to 0.

2. We have some options to influence the column widths.
Using the nightly build you may add VWidthConfigurations to the table control to influence the column width-weights.
Besides that the column width is depending on the ECPCellEditor which gets used as the Editor for the column.

Regards
Johannes


Johannes Faltermeier

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Table Control : Column Width [message #1727431 is a reply to message #1727048] Wed, 23 March 2016 04:01 Go to previous messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hi Johannes

Thanks for your very prompt reply.

I tried doing your 1st Solution. Created a Template Model.
I Right Clicked on View Template and created a Style
I then right clicked on a Style and created domainModelReference
If i use a domainModelReference,
1. i should select the ereference which is being shown as a table.
correct me if i am wrong ?
I then right clicked on Style and created Table Validation Column Style
and made the width to 0.

This Template Model is in the same plugin as the viewmodel. On running
the e3 product i dnt see any difference in the output.

Attaching the project for your reference.

Regards
Malai


Confusion No 1.
Should i use a domainModelReference or a viewModelReference ?



On 18/03/16 6:29 PM, Johannes Faltermeier wrote:
> Hi,
> 1. The validation column will be shown for all tables which are not
> readonly. However you may create a template model including a
> TableValidationStyleProperty. Here you can influence the column width of
> the validation column, so you could set it to 0.
>
> 2. We have some options to influence the column widths. Using the
> nightly build you may add VWidthConfigurations to the table control to
> influence the column width-weights. Besides that the column width is
> depending on the ECPCellEditor which gets used as the Editor for the
> column.
> Regards
> Johannes
  • Attachment: epf-code.zip
    (Size: 150.21KB, Downloaded 135 times)
Re: [EMF Forms] Table Control : Column Width [message #1727610 is a reply to message #1727431] Thu, 24 March 2016 12:43 Go to previous message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 101
Registered: December 2013
Senior Member

Hi,

which version are you using? There was a bug in an older version when 0 was not working, but you can set the width to 1 for example.
Regarding the selector. If you want to change the column for all TableControls you should use a ViewModelElement Selector and select the TableControl class.
If you want to change it for one table control use the DMR-Selector and point it to the Table's EReference, as you did in your example.

Cheers


Johannes Faltermeier

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:[EMF Forms] New Ecore Editor Reloaded not showing up in Mars.2
Next Topic:[EMF Forms] Ecore Editor e4 support
Goto Forum:
  


Current Time: Thu Apr 18 10:03:48 GMT 2024

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

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

Back to the top