]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Adapt to changes in Argeo Commons.
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 16 Oct 2020 08:52:47 +0000 (10:52 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 16 Oct 2020 08:52:47 +0000 (10:52 +0200)
rcp/org.argeo.eclipse.ui.rcp/src/org/argeo/eclipse/ui/specific/EclipseUiSpecificUtils.java

index 315aa3bbf7a05b21c1a5f23784bdde43af9d12b3..1fa96cc09435595d98103237bfa731595697af74 100644 (file)
@@ -3,9 +3,24 @@ package org.argeo.eclipse.ui.specific;
 import org.eclipse.jface.viewers.ColumnViewer;
 import org.eclipse.jface.viewers.ColumnViewerToolTipSupport;
 import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.swt.widgets.Widget;
 
 /** Static utilities to bridge differences between RCP and RAP */
 public class EclipseUiSpecificUtils {
+       private final static String CSS_CLASS = "org.eclipse.e4.ui.css.CssClassName";
+
+       public static void setStyleData(Widget widget, Object data) {
+               widget.setData(CSS_CLASS, data);
+       }
+
+       public static Object getStyleData(Widget widget) {
+               return widget.getData(CSS_CLASS);
+       }
+
+       public static void setMarkupData(Widget widget) {
+               // does nothing
+       }
+
        /**
         * TootlTip support is supported for {@link ColumnViewer} in RCP
         *