bug: file Template lose param

example, my file template:


#parse("File Header.java")

package $;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import org.apache.commons.lang.enum.ValuedEnum;

public class $ extends ValuedEnum { #if (${Value_1} != "" && $ != "") public static final int VALUE_1 = $; public static final $ $ = new $("$", $);
#end

#if ($ != "" && $ != "") public static final int VALUE_2 = $;
public static final $ $ = new $("$", $);
#end

#if ($ != "" && $ != "") public static final int VALUE_3 = $;
public static final $ $ = new $("$", $);
#end

#if ($ != "" && $ != "") public static final int VALUE_4 = $;
public static final $ $ = new $("$", $);
#end

#if ($ != "" && $ != "") public static final int VALUE_5 = $;
public static final $ $ = new $("$", $);
#end

private $(String aName, int aValue) { super(aName, aValue); } public static $ getEnum(String aName)
{
return (${NAME}) getEnum($.class, aName); } public static $ getEnum(int aValue)
{
return (${NAME}) getEnum($.class, aValue); } public static Map getEnumMap() { return getEnumMap($.class);
}

public static List getEnumList()
{
return getEnumList(${NAME}.class);
}

public static Iterator iterator()
{
return iterator(${NAME}.class);
}
}

1 comment
Comment actions Permalink

This bug has already been fixed.

Regards,
Eugene

"PingHe" <no_mail@jetbrains.com> wrote in message
news:20321121.1061372546415.JavaMail.itn@is.intellij.net...

example, my file template:

>
>

#parse("File Header.java")

>

package $;

>

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import org.apache.commons.lang.enum.ValuedEnum;

>

public class $ extends ValuedEnum > { > #if (${Value_1} != "" && $ != "") > public static final int VALUE_1 = $; > public static final $ $ = new $("$", $);
#end

>

#if ($ != "" && $ != "") > public static final int VALUE_2 = $;
public static final $ $ = new $("$", $);
#end

>

#if ($ != "" && $ != "") > public static final int VALUE_3 = $;
public static final $ $ = new $("$", $);
#end

>

#if ($ != "" && $ != "") > public static final int VALUE_4 = $;
public static final $ $ = new $("$", $);
#end

>

#if ($ != "" && $ != "") > public static final int VALUE_5 = $;
public static final $ $ = new $("$", $);
#end

>

private $(String aName, int aValue) > { > super(aName, aValue); > } > > public static $ getEnum(String aName)
{
return (${NAME}) getEnum($.class, aName); > } > > public static $ getEnum(int aValue)
{
return (${NAME}) getEnum($.class, aValue); > } > > public static Map getEnumMap() > { > return getEnumMap($.class);
}

>

public static List getEnumList()
{
return getEnumList(${NAME}.class);
}

>

public static Iterator iterator()
{
return iterator(${NAME}.class);
}
}

>


0

Please sign in to leave a comment.