[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Getting selected configurations from the configuration page of the New C project wizard
|
Been searching for hours, then just after posting my email for help I
found it:
/*
Gets configurations from the second page of the new cproject wizard
*/
public static String[] getConfigurations() {
IWizardPage[] wizardPages = MBSCustomPageManager.getPages();
CfgHolder[] configItems = null;
String[] configNames = new String[2];
for (IWizardPage wizardPage : wizardPages) {
if (wizardPage instanceof CDTConfigWizardPage) {
CDTConfigWizardPage cwp = (CDTConfigWizardPage) wizardPage;
configItems = cwp.getCfgItems(false);
}
}
for(int i=0; i < configItems.length; i++) {
configNames[i] = configItems[i].getName();
}
return configNAmes;
}
Antony
On 10/07/2014 17:32, Antony Burton wrote:
Hi,
I would like to read the values of the check-boxes in the select
configurations page of the New C project wizard corresponding to the
selected configurations. Tried quite a few things but to no avail. I
would like to read these values in a subsequent custom wizard page,
Thanks in advance for any help,
Antony
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev