1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug in new project wizard:

Deselected configs were still created
 when "finish" was pressed from custom page.
This commit is contained in:
Oleg Krasilnikov 2007-03-12 09:03:40 +00:00
parent 87779c80a7
commit ccd30b4ad3

View file

@ -230,24 +230,21 @@ public class CConfigWizardPage extends MBSCustomPage {
*/
public void setVisible(boolean visible) {
isVisible = visible;
if (handler != null) {
if (handler.needsConfig()) {
if (visible && handler != null) {
if (handler.needsConfig()) {
tv.setInput(cfgItems(getDefaultCfgs(handler)));
tv.setAllChecked(true);
// setPageComplete(validatePage());
if (visible) {
String s = EMPTY_STR;
IToolChain[] tc = handler.getSelectedToolChains();
for (int i=0; i < tc.length; i++) {
s = s + tc[i].getName();
if (i < tc.length - 1) s = s + ", "; //$NON-NLS-1$
}
l_chains.setText(s);
l_projtype.setText(handler.getName());
String s = EMPTY_STR;
IToolChain[] tc = handler.getSelectedToolChains();
for (int i=0; i < tc.length; i++) {
s = s + tc[i].getName();
if (i < tc.length - 1) s = s + ", "; //$NON-NLS-1$
}
l_chains.setText(s);
l_projtype.setText(handler.getName());
}
propButton.setSelection(handler.showProperties());
}
propButton.setSelection(handler.showProperties());
parent.setVisible(visible);
if (visible) update();
}