]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - osgi/plugins/org.argeo.osgi.ui.explorer/src/main/java/org/argeo/osgi/ui/explorer/views/BundlesView.java
Move to Commons Base
[lgpl/argeo-commons.git] / osgi / plugins / org.argeo.osgi.ui.explorer / src / main / java / org / argeo / osgi / ui / explorer / views / BundlesView.java
index 291887f93d87f51c207529d3921983f24101c4ce..3adb450efbabfed51fd93ebe75fda21b551ef350 100644 (file)
@@ -1,12 +1,27 @@
+/*
+ * 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;
@@ -32,14 +47,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);