1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-27 10:55:33 +02:00

Small fixes for UI + 1 fix for CModelBuilder

This commit is contained in:
Hoda Amer 2004-02-06 17:29:40 +00:00
parent 524975ed0f
commit 2e52e1bcc2
4 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,6 @@
2004-02-06 Hoda Amer
Fix for Bug#51208: NullPointerException in CModelBuilder
2004-02-05 Alain Magloire 2004-02-05 Alain Magloire
PR 50810 PR 50810

View file

@ -122,7 +122,9 @@ public class CModelBuilder {
parser = ParserFactory.createParser( parser = ParserFactory.createParser(
ParserFactory.createScanner( ParserFactory.createScanner(
new StringReader( code ), new StringReader( code ),
translationUnit.getUnderlyingResource().getLocation().toOSString(), (translationUnit.getUnderlyingResource() != null ?
translationUnit.getUnderlyingResource().getLocation().toOSString() :
""),
scanInfo, scanInfo,
mode, mode,
language, language,

View file

@ -1,3 +1,7 @@
2004-02-06 Hoda Amer
- Patch for Keith Campbell: Default template file change ( for statement )
- Patch for Chris Wiebe: Better header file icon
2004-02-05 Alain Magloire 2004-02-05 Alain Magloire
Patch from Chris Wiebe Patch from Chris Wiebe

View file

@ -10,13 +10,13 @@ All Rights Reserved.
<!-- C++ --> <!-- C++ -->
<template description="for loop" name="for" context="C Function"> <template description="for loop" name="for" context="C Function">
for (${var} = 0; ${var} &lt; ${max}; ${var}++) { for (${var} = 0; ${var} &lt; ${max}; ++${var}) {
${cursor} ${cursor}
} }
</template> </template>
<template description="for loop with temporary variable" name="for" context="C Function"> <template description="for loop with temporary variable" name="for" context="C Function">
for (int ${var} = 0; ${var} &lt; ${max}; ${var}++) { for (int ${var} = 0; ${var} &lt; ${max}; ++${var}) {
${cursor} ${cursor}
} }
</template> </template>