1 package org
.argeo
.eclipse
.ui
.specific
;
3 import org
.eclipse
.jface
.viewers
.ColumnViewer
;
4 import org
.eclipse
.jface
.viewers
.ColumnViewerToolTipSupport
;
5 import org
.eclipse
.jface
.viewers
.Viewer
;
6 import org
.eclipse
.swt
.widgets
.Widget
;
8 /** Static utilities to bridge differences between RCP and RAP */
9 public class EclipseUiSpecificUtils
{
10 private final static String CSS_CLASS
= "org.eclipse.e4.ui.css.CssClassName";
12 public static void setStyleData(Widget widget
, Object data
) {
13 widget
.setData(CSS_CLASS
, data
);
16 public static Object
getStyleData(Widget widget
) {
17 return widget
.getData(CSS_CLASS
);
20 public static void setMarkupData(Widget widget
) {
24 public static void setMarkupValidationDisabledData(Widget widget
) {
29 * TootlTip support is supported for {@link ColumnViewer} in RCP
31 * @see ColumnViewerToolTipSupport#enableFor(Viewer)
33 public static void enableToolTipSupport(Viewer viewer
) {
34 if (viewer
instanceof ColumnViewer
)
35 ColumnViewerToolTipSupport
.enableFor((ColumnViewer
) viewer
);
38 private EclipseUiSpecificUtils() {