# HG changeset patch # User Ed Swartz # Date 1262202555 21600 # Node ID 9cbe484c27154014b0fe357c7cfd66b335fc8061 # Parent dfcdb2620e5279833dd31c301a3b689355f2e39c Set the other columns as explicitly using the default font, to work around the previous issue (but still pack columns, for consistency). diff -r dfcdb2620e52 -r 9cbe484c2715 connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java --- 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(); } }); }