Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/ActionHeaderLabelProvider.java')
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/ActionHeaderLabelProvider.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/ActionHeaderLabelProvider.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/ActionHeaderLabelProvider.java
index a4e92150c26..bc425528038 100755
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/ActionHeaderLabelProvider.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/provider/ActionHeaderLabelProvider.java
@@ -38,9 +38,12 @@ public class ActionHeaderLabelProvider extends AbstractNattableCellLabelProvider
*/
@Override
public boolean accept(Object element) {
- final ILabelProviderCellContextElementWrapper contextElement = (ILabelProviderCellContextElementWrapper) element;
- final Object value = contextElement.getObject();
- return ActionUtils.isAction(value);
+ if (element instanceof ILabelProviderContextElementWrapper) {
+ final ILabelProviderContextElementWrapper contextElement = (ILabelProviderContextElementWrapper) element;
+ final Object value = getWrappedValue(contextElement);
+ return ActionUtils.isAction(value);
+ }
+ return false;
}
/**

Back to the top