File templates, package name is generated in the wrong place

I have created the following file template for Scala class files:

/*
* Copyright blah blah...
*/
#if ( $PACKAGE_NAME != "" )package ${PACKAGE_NAME}
#end

class ${NAME}



When I now create a new Scala class, the content of the new file looks like this:

package org.jesperdj.scalaray

/*
* Copyright blah blah...
*/
class Test



Note that the package statement is at the top of the file, above the copyright comment. I had expected the package statement below the comment, like this:

/*
* Copyright blah blah...
*/
package org.jesperdj.scalaray

class Test



Why is the structure different than in the file template?

I'm using IDEA 10.0.1 on Windows 7 (64-bit).

Please sign in to leave a comment.