Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 489720

Summary: [Table] In Property View, Tables are not resized based on the view size and layout option
Product: [Modeling] Papyrus Reporter: Celine Janssens <Celine.janssens>
Component: TableAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: papyrus-bugs
Version: 1.2.0   
Target Milestone: 3.0.0   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=476984
https://git.eclipse.org/r/71499
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=0ec28fa6dce52335f9154e8920ae4305def34ec0
https://git.eclipse.org/r/71878
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=4f474b1e56c90a7ef10072552ac4ade51898cadc
https://git.eclipse.org/r/71976
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=a58fd4ea17e841daa8b2a9a8462b16e9244e2bd3
Whiteboard:
Bug Depends on:    
Bug Blocks: 495352    
Attachments:
Description Flags
FILL layout option
none
END layout Option
none
CENTER Layout option
none
Expected result by Default in the property View none

Description Celine Janssens CLA 2016-03-16 05:26:44 EDT
Created attachment 260329 [details]
FILL layout option

When adding a table in the property view, 
And set the table layout to FILL , table does not resize based on the view size.
Same for END, BEGINNING and CENTER, the result is quite cahotic

GridData tableData = new GridData(SWT.FILL, SWT.FILL, true, true);
natTableWidget.setLayoutData(tableData);

If the FILL behavior is normal , it should be possible to resize the table based on the view width. 

And set the percentage of each column :
For exemple if the first column is set to 25% means that the second is 75% width. 
(if only 2 columns)

By default each column should fill the width with the same proportion (50 /50 for 2 columns for instance )
Comment 1 Celine Janssens CLA 2016-03-16 05:27:06 EDT
Created attachment 260330 [details]
END layout Option
Comment 2 Celine Janssens CLA 2016-03-16 05:27:31 EDT
Created attachment 260331 [details]
CENTER Layout option
Comment 3 Celine Janssens CLA 2016-03-16 05:28:15 EDT
Created attachment 260332 [details]
Expected result by Default in the property View
Comment 4 Eclipse Genie CLA 2016-04-27 04:08:46 EDT
New Gerrit change created: https://git.eclipse.org/r/71499
Comment 6 Vincent Lorenzo CLA 2016-04-28 11:44:55 EDT
Waiting documentation update to close the bug (add the new named style to the doc)
Comment 7 Eclipse Genie CLA 2016-05-03 05:56:26 EDT
New Gerrit change created: https://git.eclipse.org/r/71878
Comment 9 Eclipse Genie CLA 2016-05-04 03:18:04 EDT
New Gerrit change created: https://git.eclipse.org/r/71976
Comment 11 Vincent Lorenzo CLA 2016-07-05 10:03:52 EDT
This bug can be marked as resolved fixed.