X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=osgi%2Fplugins%2Forg.argeo.osgi.ui.explorer%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fosgi%2Fui%2Fexplorer%2Fviews%2FBundlesView.java;h=4b9339a79be0f1c39287cf13e40da15e3832e912;hb=36862e777231ee8beecf4d5c7081fdfb8e28cfbd;hp=291887f93d87f51c207529d3921983f24101c4ce;hpb=747287fd2bc5b5ccf007e403947065acdaa5ef19;p=lgpl%2Fargeo-commons.git diff --git a/osgi/plugins/org.argeo.osgi.ui.explorer/src/main/java/org/argeo/osgi/ui/explorer/views/BundlesView.java b/osgi/plugins/org.argeo.osgi.ui.explorer/src/main/java/org/argeo/osgi/ui/explorer/views/BundlesView.java index 291887f93..4b9339a79 100644 --- a/osgi/plugins/org.argeo.osgi.ui.explorer/src/main/java/org/argeo/osgi/ui/explorer/views/BundlesView.java +++ b/osgi/plugins/org.argeo.osgi.ui.explorer/src/main/java/org/argeo/osgi/ui/explorer/views/BundlesView.java @@ -3,10 +3,10 @@ package org.argeo.osgi.ui.explorer.views; import java.util.Comparator; import org.argeo.eclipse.ui.ColumnViewerComparator; +import org.argeo.eclipse.ui.specific.EclipseUiSpecificUtils; import org.argeo.osgi.ui.explorer.OsgiExplorerImages; import org.argeo.osgi.ui.explorer.OsgiExplorerPlugin; import org.eclipse.jface.viewers.ColumnLabelProvider; -import org.eclipse.jface.viewers.ColumnViewerToolTipSupport; import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.TableViewerColumn; @@ -32,14 +32,7 @@ public class BundlesView extends ViewPart { viewer.setContentProvider(new BundleContentProvider()); viewer.getTable().setHeaderVisible(true); - // FIXME methodNotFound issue in RAP when built in Maven against RCP - try { - ColumnViewerToolTipSupport.enableFor(viewer); - } catch (Error e) { - //String prop = Table.ENABLE_CELL_TOOLTIP; - String prop = "org.eclipse.swt.widgets.Table#enableCellToolTip"; - viewer.getControl().setData(prop, Boolean.TRUE); - } + EclipseUiSpecificUtils.enableToolTipSupport(viewer); // ID TableViewerColumn column = new TableViewerColumn(viewer, SWT.NONE);