mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
Bug 423696 - [New Class Wizard] base classes has a fully qualified name,
even though the new class is in the same namespace Change-Id: I08c2486686b2db540ba321334976a8d5830a2813 Signed-off-by: Jiří Nytra <jiri.nytra@gmail.com> Reviewed-on: https://git.eclipse.org/r/20900 Tested-by: Hudson CI Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
d3a8e639c8
commit
cd869eeed6
1 changed files with 6 additions and 1 deletions
|
@ -683,7 +683,12 @@ public class NewClassCodeGenerator {
|
|||
text.append(" : "); //$NON-NLS-1$
|
||||
for (int i = 0; i < fBaseClasses.length; ++i) {
|
||||
IBaseClassInfo baseClass = fBaseClasses[i];
|
||||
String baseClassName = baseClass.getType().getQualifiedTypeName().getFullyQualifiedName();
|
||||
IQualifiedTypeName qualifiedTypeName = baseClass.getType().getQualifiedTypeName();
|
||||
|
||||
if (fNamespace != null)
|
||||
qualifiedTypeName = qualifiedTypeName.removeFirstSegments(qualifiedTypeName.matchingFirstSegments(fNamespace));
|
||||
String baseClassName = qualifiedTypeName.getFullyQualifiedName();
|
||||
|
||||
if (i > 0)
|
||||
text.append(", "); //$NON-NLS-1$
|
||||
if (baseClass.getAccess() == ASTAccessVisibility.PRIVATE)
|
||||
|
|
Loading…
Add table
Reference in a new issue