fixed some parser bugs
[phpeclipse.git] / net.sourceforge.phpeclipse / templates / default-codetemplates.xml
index 645b950..45d2b09 100644 (file)
  * ${see_to_overridden}
  */</template>
 
-<template name="newtype" id="net.sourceforge.phpdt.ui.text.codetemplates.newtype" description="%CodeTemplates.newfile" context="newtype_context" enabled="true">/*
+<template name="newtype" id="net.sourceforge.phpdt.ui.text.codetemplates.newtype" description="%CodeTemplates.newfile" context="newtype_context" enabled="true">&lt;?php
+/*
  * %CodeTemplates.newfile.content1
  *
- * ${todo} %CodeTemplates.newfile.content2
+ * %CodeTemplates.newfile.content2
  * %CodeTemplates.newfile.content3
  */
-${package_declaration}
-
-${typecomment}
-${type_declaration}</template>
+?&gt;
+</template>
 
 <template name="catchblock" id="net.sourceforge.phpdt.ui.text.codetemplates.catchblock" description="%CodeTemplates.catchblock" context="catchblock_context" enabled="true">// ${todo} %CodeTemplates.catchblock.tododesc
 ${exception_var}.printStackTrace();</template>
@@ -64,7 +63,7 @@ ${body_statement}</template>
 
 <template name="constructorbody" id="net.sourceforge.phpdt.ui.text.codetemplates.constructorbody" description="%CodeTemplates.constructorstub" context="constructorbody_context" enabled="true">${body_statement}
 // ${todo} %CodeTemplates.constructorstub.tododesc</template>
-
 <template name="getterbody" id="net.sourceforge.phpdt.ui.text.codetemplates.getterbody" description="%CodeTemplates.getterstub" context="getterbody_context" enabled="true">return ${field};</template>
 
 <template name="setterbody" id="net.sourceforge.phpdt.ui.text.codetemplates.setterbody" description="%CodeTemplates.setterstub" context="setterbody_context" enabled="true">${field} = ${param};</template>