# HG changeset patch # User stechong # Date 1242672932 18000 # Node ID 8c2b8fd0f189fd0e0be49f7aa5549c022acd8b12 # Parent d0e39a2b6afc908082eec570cf155330f4505978 Changed default MMP selection pattern in the bld.inf import wizard; fix for Bug 9033. diff -r d0e39a2b6afc -r 8c2b8fd0f189 builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/api/builder/ui/MMPSelectionUI.java --- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/api/builder/ui/MMPSelectionUI.java Mon May 18 13:18:25 2009 -0500 +++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/api/builder/ui/MMPSelectionUI.java Mon May 18 13:55:32 2009 -0500 @@ -56,6 +56,7 @@ public class MMPSelectionUI extends Composite implements ISelectionProvider { private static final String AUTOTEST_UID = ".uid"; //$NON-NLS-1$ + private static int MMP_SELECTION_THRESHOLD = 3; public final class FileInfo { private int ordinal; @@ -420,7 +421,12 @@ for (TableColumn tableColumn : columns) { tableColumn.pack(); } - setAllChecked(true); + if (data.size() > MMP_SELECTION_THRESHOLD) { + setAllChecked(false); + } + else { + setAllChecked(true); + } } /** @@ -585,4 +591,14 @@ } return null; } + + /** + * Set the MMP selection threshold. When number of MMPs <= threshold, all MMPs are selected by default. + * When number of MMPs > threshold, no MMP is selected by default. + * @param threshold - threshold for MMP selection + */ + public static void setMMPSelectionThreshold(int threshold) { + MMP_SELECTION_THRESHOLD = threshold; + } + }