]> 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
workaround for the view to start : done by mbaudier via VPN to bsinou work station
[lgpl/argeo-commons.git] / osgi / plugins / org.argeo.osgi.ui.explorer / src / main / java / org / argeo / osgi / ui / explorer / views / BundlesView.java
index 166941180e88be75a80b3bc1275b952f8ff568df..291887f93d87f51c207529d3921983f24101c4ce 100644 (file)
@@ -14,7 +14,6 @@ import org.eclipse.jface.viewers.Viewer;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Table;
 import org.eclipse.ui.part.ViewPart;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
@@ -36,9 +35,10 @@ public class BundlesView extends ViewPart {
                // FIXME methodNotFound issue in RAP when built in Maven against RCP
                try {
                        ColumnViewerToolTipSupport.enableFor(viewer);
-               } catch (Exception e) {
-                       viewer.getControl()
-                                       .setData(Table.ENABLE_CELL_TOOLTIP, Boolean.TRUE);
+               } catch (Error e) {
+                       //String prop = Table.ENABLE_CELL_TOOLTIP;
+                       String prop = "org.eclipse.swt.widgets.Table#enableCellToolTip";
+                       viewer.getControl().setData(prop, Boolean.TRUE);
                }
 
                // ID
@@ -59,7 +59,7 @@ public class BundlesView extends ViewPart {
 
                // State
                column = new TableViewerColumn(viewer, SWT.NONE);
-               column.getColumn().setWidth(16);
+               column.getColumn().setWidth(18);
                column.getColumn().setText("State");
                column.setLabelProvider(new StateLabelProvider());
                new ColumnViewerComparator<Bundle>(column, new Comparator<Bundle>() {