Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 180262
Collapse All | Expand All

(-)src/org/eclipse/hyades/test/ui/datapool/internal/control/DatapoolTableUtil.java (-4 / +15 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials 
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 20-27 Link Here
20
import org.eclipse.swt.widgets.TableItem;
20
import org.eclipse.swt.widgets.TableItem;
21
21
22
/**
22
/**
23
 * @author psun
23
 * DatapoolTableUtil.java
24
 *
24
 * <p/>
25
 * 
26
 * 
27
 * @author  Peter Sun
28
 * @author  Paul E. Slauenwhite
29
 * @version April 12, 2008
30
 * @since   April 12, 2008
25
 */
31
 */
26
public class DatapoolTableUtil {
32
public class DatapoolTableUtil {
27
33
Lines 46-53 Link Here
46
		for(int i = 0; i < table.getColumnCount(); i++)
52
		for(int i = 0; i < table.getColumnCount(); i++)
47
		{
53
		{
48
			TableColumn tableColumn = table.getColumn(i);
54
			TableColumn tableColumn = table.getColumn(i);
49
			if(tableColumn.getWidth() != 0)
55
			
56
			//Note: The second condition (tableColumn.getResizable()) is a work-around for SWT defect #226973. 
57
			if((tableColumn.getWidth() != 0) || (tableColumn.getResizable())){
50
				counter++;	
58
				counter++;	
59
			}
51
		}
60
		}
52
		return counter;
61
		return counter;
53
	}
62
	}
Lines 139-144 Link Here
139
			catch(Exception e)
148
			catch(Exception e)
140
			{
149
			{
141
			}
150
			}
151
			
152
			//Note: Required in getColumnCount() to work-around for SWT defect #226973. 
142
			tableColumn.setResizable(false);
153
			tableColumn.setResizable(false);
143
		}
154
		}
144
	}
155
	}

Return to bug 180262