Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Obsolete
Assignee
Maxim Mossienko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Jan Klosinski
    2 years ago (27 May 2009 15:51)
  • Updated by   Kirill Safonov
    14 months ago (24 Nov 2010 21:11)
  • Jira: IDEA-23057
    (history, comments)
 
IDEA-23057 File template variables not expanded when AS class generated from 'show intention actions'
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
ActionScript class file template:

package ${PACKAGE_NAME}#if (${PACKAGE_NAME} != "") #end{

  1. parse("File Header.java")
public class ${NAME} #if (${Super_class_name} != "")extends ${Super_class_name}#end{

public function ${NAME}() {
#if (${Super_class_name} != "")super();#end
}

}
}

file header:

/**
* Created by IntelliJ IDEA.
* Date: ${DATE}
* Time: ${TIME}
* @author Jan Klosinski vanjan@gmail.com | vanjan.pl
*/

If I right-click on a package > new > as class, the generated file will contain correct date and time values.
If I type new class' name in the editor, alt+enter > generate class, the file will contain strings ${DATE} and ${TIME} instead of actual values.

Environment: mac os x 10.5.7
Comments (1)
 
History
 
Linked Issues (?)
 
Kirill Safonov
  Kirill Safonov
24 Nov 2010 21:11
14 months ago
fixed, please report if you see it's not
Related Changes
Resolved Date
14 months ago (24 Nov 2010 21:11)
State
OpenObsolete
Assignee
Maxim Mossienko (nicity)Maxim Mossienko
Subsystem
<lost change>Flex Support