X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=osgi%2Fplugins%2Forg.argeo.osgi.ui.explorer%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fosgi%2Fui%2Fexplorer%2Fviews%2FBundlesView.java;h=3adb450efbabfed51fd93ebe75fda21b551ef350;hb=5726aa10afa99c0b21a9ff5c5f9c5e47fc028164;hp=291887f93d87f51c207529d3921983f24101c4ce;hpb=a845f1d7effe621e5d4b5672b3dcd6afeb372989;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..3adb450ef 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 @@ -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);