1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 250625 - NPE in AbstractFileCreationWizardPage

This commit is contained in:
Anton Leherbauer 2008-10-13 12:33:39 +00:00
parent 11972439bb
commit 10b2bb8da5

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2007 QNX Software Systems and others.
* Copyright (c) 2004, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -241,6 +241,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
}
protected void updateTemplates() {
if (fTemplateDialogField != null) {
Template selected= getSelectedTemplate();
String name = selected != null ?
selected.getName() :
@ -258,6 +259,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
fTemplateDialogField.setItems(names);
fTemplateDialogField.selectItem(idx);
}
}
/**
* Configure the set of templates to select from.