]> git.argeo.org Git - lgpl/argeo-commons.git/blob - EclipseUiSpecificUtils.java
74282f9f82f14a1c6af0e7c265231e97d3846fbb
[lgpl/argeo-commons.git] / EclipseUiSpecificUtils.java
1 package org.argeo.eclipse.ui.specific;
2
3 import org.eclipse.jface.viewers.ColumnViewer;
4 import org.eclipse.jface.viewers.ColumnViewerToolTipSupport;
5 import org.eclipse.jface.viewers.Viewer;
6
7 /** Static utilities to bridge differences between RCP and RAP */
8 public class EclipseUiSpecificUtils {
9 /**
10 * TootlTip support is supported for {@link ColumnViewer} in RCP
11 *
12 * @see ColumnViewerToolTipSupport#enableFor(Viewer)
13 */
14 public static void enableToolTipSupport(Viewer viewer) {
15 if (viewer instanceof ColumnViewer)
16 ColumnViewerToolTipSupport.enableFor((ColumnViewer) viewer);
17 }
18
19 private EclipseUiSpecificUtils() {
20 }
21
22 }