mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug in new project wizard:
Deselected configs were still created when "finish" was pressed from custom page.
This commit is contained in:
parent
87779c80a7
commit
ccd30b4ad3
1 changed files with 10 additions and 13 deletions
|
@ -230,24 +230,21 @@ public class CConfigWizardPage extends MBSCustomPage {
|
||||||
*/
|
*/
|
||||||
public void setVisible(boolean visible) {
|
public void setVisible(boolean visible) {
|
||||||
isVisible = visible;
|
isVisible = visible;
|
||||||
if (handler != null) {
|
if (visible && handler != null) {
|
||||||
if (handler.needsConfig()) {
|
if (handler.needsConfig()) {
|
||||||
tv.setInput(cfgItems(getDefaultCfgs(handler)));
|
tv.setInput(cfgItems(getDefaultCfgs(handler)));
|
||||||
tv.setAllChecked(true);
|
tv.setAllChecked(true);
|
||||||
// setPageComplete(validatePage());
|
String s = EMPTY_STR;
|
||||||
if (visible) {
|
IToolChain[] tc = handler.getSelectedToolChains();
|
||||||
String s = EMPTY_STR;
|
for (int i=0; i < tc.length; i++) {
|
||||||
IToolChain[] tc = handler.getSelectedToolChains();
|
s = s + tc[i].getName();
|
||||||
for (int i=0; i < tc.length; i++) {
|
if (i < tc.length - 1) s = s + ", "; //$NON-NLS-1$
|
||||||
s = s + tc[i].getName();
|
|
||||||
if (i < tc.length - 1) s = s + ", "; //$NON-NLS-1$
|
|
||||||
}
|
|
||||||
l_chains.setText(s);
|
|
||||||
l_projtype.setText(handler.getName());
|
|
||||||
}
|
}
|
||||||
|
l_chains.setText(s);
|
||||||
|
l_projtype.setText(handler.getName());
|
||||||
}
|
}
|
||||||
|
propButton.setSelection(handler.showProperties());
|
||||||
}
|
}
|
||||||
propButton.setSelection(handler.showProperties());
|
|
||||||
parent.setVisible(visible);
|
parent.setVisible(visible);
|
||||||
if (visible) update();
|
if (visible) update();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue