Template Contexts [message #94330] |
Fri, 20 February 2009 14:11 |
Eclipse User |
|
|
|
Hi,
I've been having multiple problems using templates, especially those with
a context of "newPhp" or "phpcomment";
1: ALL templates with a context of "phpcomment" are not available via
content assist in the editor.
reproduce:
in editor type:
filecomment[ctrl+space]
produces nothing
had a look through the source and..
org.eclipse.php.internal.ui.editor.templates.PhpCommentTempl ateContextType
appears to be missing the addScriptResolvers method - not sure if this was
to fix bug 258665 - Code assist doesn't work in private methods where are
"if" or "switch" statements; or if that bug fix has introduced more.
2: ALL templates cannot be included / nested.
reproduce:
create a new template with ${any_template_name_here} and it won't work.
3: ALL templates are not listed as variables available for insert
Window > Preferences > PHP > Templates
select any template and click [Edit...]
in Edit Template dialog box click [Insert Variables]
4: [Insert Variable...] button on alternative "Edit Template" dialog does
not work
Window > Preferences > PHP > Code Style > Code Templates
select any template and click [Edit...]
in Edit Template dialog box click [Insert Variables]
5: SOME Eclipse template variables listed for not work, namely:
${file}
${interpreter}
${language}
note: sure this is already a bug but can't refind it.
6: MINOR: Templates View Empty, no templates are listed in the "Templates"
for PHP perspectives
window > show view > general > Templates
7: Source > "Generate Element Comment" functionality is non intuative and
very difficult to use.
Would be great to see the templating side of PDT2 enhanced as it's a huge
time saver (you'll know yourselves from developing java in eclipse)
Many Regards,
Nathan
|
|
|
Powered by
FUDForum. Page generated in 0.02762 seconds