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:
parent
1bec4f8d34
commit
4068595166
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue