diff options
author | Thanh Liem PHAN | 2016-12-21 15:02:23 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2017-04-26 15:13:59 +0000 |
commit | a66c06dc2549cbd65aaa248ea8d105a07486c043 (patch) | |
tree | b73b7c3fc1780b812e31dd2e6891aec0d2b6b7dd /plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml | |
parent | 8fc4e5d8dbfa9611b1a3c7160d1a1db888854e7f (diff) | |
download | org.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/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml')
-rw-r--r-- | plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml index e95f504da74..c06c7b24ef4 100644 --- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml +++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/plugin.xml @@ -1734,4 +1734,75 @@ type="java.lang.Object"> </propertyTester> </extension> + <extension + point="org.eclipse.ui.commands"> + <command + categoryId="org.eclipse.papyrus.infra.nattable.category" + description="Wrap Text" + id="org.eclipse.papyrus.infra.nattable.wraptext" + name="Wrap Text"> + <state + class="org.eclipse.ui.handlers.RegistryToggleState" + id="org.eclipse.ui.commands.toggleState"> + </state> + </command> + <command + categoryId="org.eclipse.papyrus.infra.nattable.category" + description="Auto Resize Cell Height" + id="org.eclipse.papyrus.infra.nattable.autoresize.cellheight" + name="Auto Resize Cell Height"> + <state + class="org.eclipse.ui.handlers.RegistryToggleState" + id="org.eclipse.ui.commands.toggleState"> + </state> + </command> + </extension> + <extension + point="org.eclipse.ui.menus"> + <menuContribution + allPopups="true" + locationURI="popup:org.eclipse.papyrus.infra.nattable.widget.menu?endof=general.separator"> + <command + commandId="org.eclipse.papyrus.infra.nattable.wraptext" + label="Wrap Text" + style="toggle"> + </command> + <command + commandId="org.eclipse.papyrus.infra.nattable.autoresize.cellheight" + label="Auto Resize Cell Height" + style="toggle"> + </command> + </menuContribution> + </extension> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.nattable.handler.SetWrapTextHandler" + commandId="org.eclipse.papyrus.infra.nattable.wraptext"> + <activeWhen> + <with + variable="selection"> + <test + forcePluginActivation="true" + property="org.eclipse.papyrus.infra.nattable.tester.isNattableWidget" + value="true"> + </test> + </with> + </activeWhen> + </handler> + <handler + class="org.eclipse.papyrus.infra.nattable.handler.SetAutoResizeCellHeightHandler" + commandId="org.eclipse.papyrus.infra.nattable.autoresize.cellheight"> + <activeWhen> + <with + variable="selection"> + <test + forcePluginActivation="true" + property="org.eclipse.papyrus.infra.nattable.tester.isNattableWidget" + value="true"> + </test> + </with> + </activeWhen> + </handler> + </extension> </plugin> |