mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
21a2b93c96
commit
6ea674106c
1 changed files with 1 additions and 3 deletions
|
@ -22,7 +22,6 @@ import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
public class CodeTemplateContext extends FileTemplateContext {
|
public class CodeTemplateContext extends FileTemplateContext {
|
||||||
|
|
||||||
private ICProject fProject;
|
private ICProject fProject;
|
||||||
|
|
||||||
public CodeTemplateContext(String contextTypeId, ICProject project, String lineDelimiter) {
|
public CodeTemplateContext(String contextTypeId, ICProject project, String lineDelimiter) {
|
||||||
|
@ -35,10 +34,9 @@ public class CodeTemplateContext extends FileTemplateContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTranslationUnitVariables(ITranslationUnit tu) {
|
public void setTranslationUnitVariables(ITranslationUnit tu) {
|
||||||
IFile file= (IFile)tu.getResource();
|
IFile file= (IFile) tu.getResource();
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
super.setResourceVariables(file);
|
super.setResourceVariables(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue