Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2020-05-14 15:12:43 +0000
committerPatrick Tessier2020-05-15 08:46:45 +0000
commit541ef46d6ac8285c707fcf22c5f08480d72e65c6 (patch)
tree006b0e9eed4cd5a6a704ba33e16537ec70b2f11f /plugins
parent3c44425f54fb51affa2aac8a08bcaabadfed6aab (diff)
downloadorg.eclipse.papyrus-541ef46d6ac8285c707fcf22c5f08480d72e65c6.tar.gz
org.eclipse.papyrus-541ef46d6ac8285c707fcf22c5f08480d72e65c6.tar.xz
org.eclipse.papyrus-541ef46d6ac8285c707fcf22c5f08480d72e65c6.zip
563172: [Table] Registering create action on row header works only when categories are hidden
Change-Id: Ic9420bbc56b60b3d20c916c1c4b68e61d4adf902 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java
index 9b943577f23..b74fd41d4ba 100755
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java
@@ -12,7 +12,7 @@
* CEA LIST - Initial API and implementation
* Dirk Fauth <dirk.fauth@googlemail.com> - Bug 488234
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 508175
- * Vincent LORENZO (CEA LIST) vincent.lorenzo@cea.fr - Bug 560318
+ * Vincent LORENZO (CEA LIST) vincent.lorenzo@cea.fr - Bug 560318, 563172
*****************************************************************************/
package org.eclipse.papyrus.infra.nattable.manager.table;
@@ -316,9 +316,11 @@ public class TreeNattableModelManager extends NattableModelManager implements IT
// update the hidden categories
List<Integer> hiddenDepth = StyleUtils.getHiddenDepths(this);
- if (hiddenDepth.size() > 0) {
- hideShowCategories(hiddenDepth, null);
- }
+
+ // we always need to call this method, because we use it as hack to register
+ // action on row header (bug 563172), it is used by the example examples/uml/org.eclipse.papyrus.example.uml.nattable.empty.line, showing categories in the table configuration
+ hideShowCategories(hiddenDepth, null);
+
this.hideShowCategoriesListener = new HideShowCategoriesTableListener(this);
if (null != getTableEditingDomain()) {
getTableEditingDomain().addResourceSetListener(this.hideShowCategoriesListener);

Back to the top