Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Template Contexts
Template Contexts [message #94330] Fri, 20 February 2009 14:11
Eclipse UserFriend
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
Previous Topic:scrolling docblock
Next Topic:Possible to search variables array key/value?
Goto Forum:
  


Current Time: Fri Apr 25 09:31:53 EDT 2025

Powered by FUDForum. Page generated in 0.02762 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top