[ phpeclipse-Bugs-1145683 ] Code Template variables not working fully
"SourceForge.net" <[email protected]> Tue, 08 May 2007 11:31:23 -0700
| Newsgroups | gmane.comp.ide.eclipse.phpeclipse.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1145683, was opened at 2005-02-21 13:16
Message generated for change (Comment added) made by emann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1145683&group_id=57621
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Preference Settings
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: James Linden (kodekrash)
Assigned to: Nobody/Anonymous (nobody)
Summary: Code Template variables not working fully
Initial Comment:
Creating a code template in the 'Preferences' dialog.
When using ${project_name}, 'project_name' is inserted
in the template (when creating a new file), instead of
the name of the actual project.
My .project file has a value for <projectname>, so I'm
not sure where PHPEclipse is looking for the value,
since it's obviously not looking in .project.
----------------------------------------------------------------------
>Comment By: Edward Mann (emann)
Date: 2007-05-08 13:31
Message:
Logged In: YES
user_id=430467
Originator: NO
I have duplicated the example, using 1.1.8 and was able to use
${project_name}. I am closing this issue.
----------------------------------------------------------------------
Comment By: James Linden (kodekrash)
Date: 2005-02-21 13:48
Message:
Logged In: YES
user_id=77309
Are you certain you understood what I'm talking about?
This is a predefined variable in:
[Preferences] PHPEclipse Web Development/PHP/Code Templates
I 'Edit' a template, and use the 'Insert Variable' button,
which pops up a list of predefined variables -- ${date},
${time}, etc.
As far as I can figure out, these have nothing to do with:
[Preferences] PHPEclipse Web Development/Templates (which
are used in the actual PHP editor for syntax highlighting,
etc...
The other predefined variables such as date,time, and
file_name work just fine -- and are not defined in the other
section.
enclosing_project is not one of the predefined variables.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2005-02-21 13:24
Message:
Logged In: NO
Please try this variable:
${enclosing_project}
Note: you have to set the PHP context for this variable in
the template definition!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1145683&group_id=57621
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/