Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2016-11-22 23:36:07 +0000
committerGerrit Code Review @ Eclipse.org2016-12-05 13:39:57 +0000
commit74502beb31fc59559e17d6a1ac5f3655eb7121e7 (patch)
treeceb655e7c2b198572514aed1ec5d91fe0d56a36e /plugins/uml/nattable
parentd273697183d67be8857da2131a2ed674685339ce (diff)
downloadorg.eclipse.papyrus-74502beb31fc59559e17d6a1ac5f3655eb7121e7.tar.gz
org.eclipse.papyrus-74502beb31fc59559e17d6a1ac5f3655eb7121e7.tar.xz
org.eclipse.papyrus-74502beb31fc59559e17d6a1ac5f3655eb7121e7.zip
Bug 504077: [Table] Papyrus table to support percentage sizing offered
by NatTable https://bugs.eclipse.org/bugs/show_bug.cgi?id=504077 Add the named styles: - 'columnsWidthAsPercentage' to manage axis width with percentage. If this named style is managed as true, the 'axisWidth' are managed as percentage too. - 'saveColumnsWidth' to determinate if the 'axisWidth' must be used for the table columns width initialization - Modify the 'stereotype.nattableconfiguration' to manage axisWidth as percentage instead of pixels Change-Id: I2a4b2ea3f6bbd710afa20864051c10f5761f4900 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@all4tec.net>
Diffstat (limited to 'plugins/uml/nattable')
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display/config/stereotype.nattableconfiguration10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display/config/stereotype.nattableconfiguration b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display/config/stereotype.nattableconfiguration
index 4db16e6b505..dd9636706cd 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display/config/stereotype.nattableconfiguration
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display/config/stereotype.nattableconfiguration
@@ -36,19 +36,19 @@
</columnHeaderAxisConfiguration>
<columnAxisProviders xsi:type="nattableaxisprovider:SlaveObjectAxisProvider" description="This axis provider provides available columns according to the columns of the table ( features of the object displayed on the other axis)" name="Stereotype display properties axis provider">
<axis xsi:type="nattableaxis:FeatureIdAxis" manager="//@columnHeaderAxisConfiguration/@axisManagers.0" alias="Name Depth" element="stereotype_display_properties:/nameDepth">
- <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="100"/>
+ <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="17"/>
</axis>
<axis xsi:type="nattableaxis:FeatureIdAxis" manager="//@columnHeaderAxisConfiguration/@axisManagers.0" alias="Visible" element="stereotype_display_properties:/isDisplayed">
- <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="100"/>
+ <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="17"/>
</axis>
<axis xsi:type="nattableaxis:FeatureIdAxis" manager="//@columnHeaderAxisConfiguration/@axisManagers.0" alias="In Braces" element="stereotype_display_properties:/isDisplayedInBraces">
- <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="120"/>
+ <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="22"/>
</axis>
<axis xsi:type="nattableaxis:FeatureIdAxis" manager="//@columnHeaderAxisConfiguration/@axisManagers.0" alias="In Comment" element="stereotype_display_properties:/isDisplayedInComment">
- <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="120"/>
+ <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="22"/>
</axis>
<axis xsi:type="nattableaxis:FeatureIdAxis" manager="//@columnHeaderAxisConfiguration/@axisManagers.0" alias="In Compartment" element="stereotype_display_properties:/isDisplayedInCompartment">
- <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="120"/>
+ <styles xsi:type="nattablestyle:IntValueStyle" name="axisWidth" intValue="22"/>
</axis>
</columnAxisProviders>
<rowAxisProviders xsi:type="nattableaxisprovider:MasterObjectAxisProvider" description="This axis provider manages the rows, according to the wanted hierarchy" name="HierarchicalRowAxisManager" disconnectSlave="true"/>

Back to the top