mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 02:45:32 +02:00
Small fixes for UI + 1 fix for CModelBuilder
This commit is contained in:
parent
524975ed0f
commit
2e52e1bcc2
4 changed files with 12 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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} < ${max}; ${var}++) {
|
for (${var} = 0; ${var} < ${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} < ${max}; ${var}++) {
|
for (int ${var} = 0; ${var} < ${max}; ++${var}) {
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue