+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
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;
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);