1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

patch for 155392 by Janees Elamkulam

This commit is contained in:
Chris Recoskie 2006-08-28 17:16:58 +00:00
parent 6f04ca7b10
commit 0df02becc9

View file

@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.internal.ui.wizards.classwizard;
@ -163,7 +164,11 @@ public class NewClassCodeGenerator {
headerWorkingCopy.commit(true, monitor);
monitor.worked(50);
createdClass = headerWorkingCopy.getElement(fClassName.toString());
IQualifiedTypeName className = new QualifiedTypeName(fClassName);
if(fNamespace != null){
className = fNamespace.append(className);
}
createdClass = headerWorkingCopy.getElement(className.getFullyQualifiedName());
fCreatedClass = createdClass;
fCreatedHeaderTU = headerTU;
}