Set the other columns as explicitly using the default font, to work around the previous issue (but still pack columns, for consistency).
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java Wed Dec 30 13:42:39 2009 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java Wed Dec 30 13:49:15 2009 -0600
@@ -283,6 +283,15 @@
return null;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.viewers.ColumnLabelProvider#getFont(java.lang.Object)
+ */
+ @Override
+ public Font getFont(Object element) {
+ // we need this to avoid letting the bold name column influence the others
+ return JFaceResources.getDefaultFont();
+ }
}
public class DescriptionLabelProvider extends ColumnLabelProvider {
@@ -310,6 +319,15 @@
return null;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.viewers.ColumnLabelProvider#getFont(java.lang.Object)
+ */
+ @Override
+ public Font getFont(Object element) {
+ // we need this to avoid letting the bold name column influence the others
+ return JFaceResources.getDefaultFont();
+ }
}
private class TypeLabelProvider extends ColumnLabelProvider {
@@ -322,6 +340,15 @@
}
return null;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.viewers.ColumnLabelProvider#getFont(java.lang.Object)
+ */
+ @Override
+ public Font getFont(Object element) {
+ // we need this to avoid letting the bold name column influence the others
+ return JFaceResources.getDefaultFont();
+ }
}
private class EnableConnectedServiceAction extends Action {
@@ -497,7 +524,7 @@
Display.getDefault().asyncExec(new Runnable() {
public void run() {
viewer.refresh(true);
- packColumns(); // not normally needed, but boldface is wider, and applied to entire row in Windows
+ packColumns();
}
});
}