Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanh Liem PHAN2016-12-21 10:02:23 -0500
committerGerrit Code Review @ Eclipse.org2017-04-26 11:13:59 -0400
commita66c06dc2549cbd65aaa248ea8d105a07486c043 (patch)
treeb73b7c3fc1780b812e31dd2e6891aec0d2b6b7dd /plugins/doc
parent8fc4e5d8dbfa9611b1a3c7160d1a1db888854e7f (diff)
downloadorg.eclipse.papyrus-a66c06dc2549cbd65aaa248ea8d105a07486c043.tar.gz
org.eclipse.papyrus-a66c06dc2549cbd65aaa248ea8d105a07486c043.tar.xz
org.eclipse.papyrus-a66c06dc2549cbd65aaa248ea8d105a07486c043.zip
Bug 459220: [Table 2] Papyrus should support automatic text wrap in
table cells https://bugs.eclipse.org/bugs/show_bug.cgi?id=459220 - Add wrap text and auto resize cell height functionalities for string columns in table - Enable/disable wrap text and auto resize cell height by the context menu - WrapText and AutoResizeCellHeight values are saved for each table using the named styles mechanism - Undo/Redo could be done in both regular table and generic table - Update userDoc and devDoc Change-Id: I26ec7dff15470a73843848f17fcfaf9656d14b2f Signed-off-by: Thanh Liem PHAN <thanhliem.phan@all4tec.net>
Diffstat (limited to 'plugins/doc')
-rw-r--r--plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableDevDoc.mediawiki36
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableUserDoc.mediawiki17
2 files changed, 36 insertions, 17 deletions
diff --git a/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableDevDoc.mediawiki b/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableDevDoc.mediawiki
index 1c773fc456e..edc3e92abaf 100644
--- a/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableDevDoc.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableDevDoc.mediawiki
@@ -1838,10 +1838,10 @@ The <code>getSelection()</code> managed in the <code>NattableModelManager</code>
This one contains a reference to the wrapper for the table selection: <code>TableSelectionWrapper</code>. To get this one: it is just needed to use the <code>getAdapter(TableSelectionWrapper.class)</code>.
==TableSelectionWrapper==
-The TableSelectionWrapper can allow to determinate the selected cells, the selected rows and the selected columns.
+The TableSelectionWrapper can allow to determine the selected cells, the selected rows and the selected columns.
The rows and the columns selected only contains the entire rows or columns selected, not partial.
-This can determinate if the cells, rows or columns are continous or not.
+This can determine if the cells, rows or columns are continous or not.
==Example of use==
This is an example how to use the table selection (enable an action when only rows are selected:
@@ -1884,58 +1884,68 @@ NamedStyles are properties that the users can add to table configurations to pro
| style="font-weight: bold;" | rowIndexWidth
| IntValueStyle
| child of RowHeaderAxisConfiguration
-| determinate the size of the row index
+| determines the size of the row index
|-
| style="font-weight: bold;" | rowLabelWidth
| IntValueStyle
| child of RowHeaderAxisConfiguration
-| determinate the size of the first row label
+| determines the size of the first row label
|-
| style="font-weight: bold;" | rowPosition''X''LabelWidth
| IntValueStyle
| child of RowHeaderAxisConfiguration
-| determinate the size of the row label at position ''X''
+| determines the size of the row label at position ''X''
|-
| style="font-weight: bold;" | columnIndexHeight
| IntValueStyle
| child of ColumnHeaderAxisConfiguration
-| determinate the height of the column index
+| determines the height of the column index
|-
| style="font-weight: bold;" | columnLabelHeight
| IntValueStyle
| child of ColumnHeaderAxisConfiguration
-| determinate the height of the column label
+| determines the height of the column label
|-
| style="font-weight: bold;" | rowHeaderWidth
| IntValueStyle
| child of Table
-| determinate the width of the row header (for the slider composite)
+| determines the width of the row header (for the slider composite)
|-
| style="font-weight: bold;" | expandAll
| BooleanValueStyle
| child of Tree Table Configuration
-| determinates if the rows will be expanded automatically when opening the table
+| determines if the rows will be expanded automatically when opening the table
|-
| style="font-weight: bold;" | fillColumnsSize ''(deprecated)''
| BooleanValueStyle
| child of Tree Table Configuration
-| determinates if the columns must fill the parent composite space
+| determines if the columns must fill the parent composite space
|-
| style="font-weight: bold;" | dragRegions
| StringListValueStyle
| child of Table or child of TableConfiguration
-| determinates grid regions where the drag support is activate. Activate by default on row header. Can set with: "ROW_HEADER", "BODY", "COLUMN_HEADER". Limitations: when activate on column, reorder column dosn't work(see [https://bugs.eclipse.org/bugs/show_bug.cgi?id=508311 bug 508311] and [https://bugs.eclipse.org/bugs/show_bug.cgi?id=508313 bug 508313])
+| determines grid regions where the drag support is activate. Activate by default on row header. Can set with: "ROW_HEADER", "BODY", "COLUMN_HEADER". Limitations: when activate on column, reorder column dosn't work(see [https://bugs.eclipse.org/bugs/show_bug.cgi?id=508311 bug 508311] and [https://bugs.eclipse.org/bugs/show_bug.cgi?id=508313 bug 508313])
|-
| style="font-weight: bold;" | columnsWidthAsPercentage
| BooleanValueStyle
| child of Tree Table Configuration
-| determinates if the columns width are managed as percentage (in this case, all the possible width must be used)
+| determines if the columns width are managed as percentage (in this case, all the possible width must be used)
|-
| style="font-weight: bold;" | saveColumnsWidth
| BooleanValueStyle
| child of Tree Table Configuration
-| determinates if the width must be saved (actually, the width are saved but just not used)
+| determines if the width must be saved (actually, the width are saved but just not used)
|-
+| style="font-weight: bold;" | wrapText
+| BooleanValueStyle
+| child of Table
+| determines if the text of cells will be wrapped when displaying the table
+|-
+| style="font-weight: bold;" | autoResizeCellHeight
+| BooleanValueStyle
+| child of Table
+| determines if the cell height will be resized automatically when displaying the table
+|-
|
|
|
diff --git a/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableUserDoc.mediawiki b/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableUserDoc.mediawiki
index ee47ff104f2..e62db887343 100755
--- a/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableUserDoc.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.infra.nattable.doc/src/site/mediawiki/tableUserDoc.mediawiki
@@ -209,9 +209,12 @@ Moreover Tree table provides some specific features
; Resize Axis
; Unset cell value (reset to default value)
: Selecting a cell in the table and doing "Delete" unset the cell value. That is to say, than the value is set to the default value (which is often null). It works only for editeable feature.
-
+; Wrap Text for String cell
+: Right click on the table body to show the context menu and select WrapText
+; Auto Resize Cell Height for String cell
+: Right click on the table body to show the context menu and select Auto Resize Cell Height
===The list of available features for tables===
-This table lists all feature available for Tabular editors provided by Papyrus (the 17th of December 2014). This list could be considered as representative of tables capabilities '''assuming 3 points''':
+This table lists all feature available for Tabular editors provided by Papyrus (the 25th of Avril 2017). This list could be considered as representative of tables capabilities '''assuming 3 points''':
# The table is not inverted
# Elements are on rows
# Features are on columns
@@ -354,11 +357,11 @@ if the user changed the configuration
|-
| Merged All Body Cells for a Column
(cells must contains the same values)
-| colspan="5" style="text-align: center;" | Yes (action provided by a poopup menu of the body)
+| colspan="5" style="text-align: center;" | Yes (action provided by a popup menu of the body)
|-
| Merged All Body Cells for a Row
(cells must contains the same values)
-| colspan="5" style="text-align: center;" | Yes (action provided by a poopup menu of the body)
+| colspan="5" style="text-align: center;" | Yes (action provided by a popup menu of the body)
|-
| Merge Column./Row Header Cells
(cells must contains the same values)
@@ -396,6 +399,12 @@ if the user changed the configuration
| Display Validation Marker in Row and Column Label Header
| colspan="5" style="text-align: center;" | Yes
|-
+| Wrap Text for String cell
+| colspan="5" style="text-align: center;" | Yes (action provided by a popup menu of the body)
+|-
+| Automatic Resize Cell Height for String cell
+| colspan="5" style="text-align: center;" | Yes (action provided by a popup menu of the body)
+|-
|}
== Fill cells ==

Back to the top