1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Fix for 198365: template - Content Assist - problem with resolve ${enclosing_project}

This commit is contained in:
Anton Leherbauer 2007-08-07 09:34:24 +00:00
parent 1bec4f8d34
commit 4068595166

View file

@ -111,7 +111,7 @@ public abstract class TranslationUnitContextType extends TemplateContextType {
super("enclosing_project", TemplateMessages.getString("CContextType.variable.description.enclosing.project")); //$NON-NLS-1$ //$NON-NLS-2$
}
public String resolve(TemplateContext context) {
ITranslationUnit unit= ((CContext) context).getTranslationUnit();
ITranslationUnit unit= ((TranslationUnitContext) context).getTranslationUnit();
return (unit == null) ? null : unit.getCProject().getElementName();
}
}