Made table in SDK preference page resizable based on # of entries.
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java Tue Jun 08 16:16:02 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java Tue Jun 08 16:18:09 2010 -0500
@@ -478,9 +478,16 @@
private void createSDKTable() {
final Table table = sdkListTableViewer.getTable();
+ int count = table.getItemCount();
+ if (count < 10) { // min. number of rows
+ count = 10;
+ } else
+ if (count > 20) { // max. number of rows
+ count = 20;
+ }
GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
gridData.widthHint = 350;
- gridData.heightHint = table.getItemHeight() * 10;
+ gridData.heightHint = table.getItemHeight() * count;
table.setLayoutData(gridData);
table.setHeaderVisible(true);
table.setLinesVisible(false);