Set the other columns as explicitly using the default font, to work around the previous issue (but still pack columns, for consistency).
authorEd Swartz <ed.swartz@nokia.com>
Wed, 30 Dec 2009 13:49:15 -0600
changeset 734 9cbe484c2715
parent 733 dfcdb2620e52
child 735 c0e4fa3c3e8a
Set the other columns as explicitly using the default font, to work around the previous issue (but still pack columns, for consistency).
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();
 					}
 				});				
 			}