Live template completion broken

Hi!

I've got a problem with the live template completion feature (where you
are prompted for possible values for the template variables). Does
anyone get the following behaviour?

I've got the following live template called "ID", activated for 'java
code' only, reformat on insert on:

private Long ID;
/**

  • @return the unique identifier for this $CLASS$

  • @hibernate.id

  • column="$column$"

  • unsaved-value="$unsavedvalue$"

  • generator-

  • access="$access$"

*/
public Long getID()
{
return ID;
}

private void setID(Long ID)
{
this.ID = ID;
}

When I insert this with TAB, the red-box cursor is positioned in the
wrong locations (halfway the 'column', for example, and so on for all
the other variables)

The resulting code is:

private Long ID;

/**

  • @return the unique identifier for this Project

*

  • @hibernate.id column="id" unsaved-value="null"

gnullator- accessnativeerty"
*/
propertyLong getID()
{
return ID;
}

private void setID(Long ID)
{
this.ID = ID;
}

Obviously wrong...

1 comment
Comment actions Permalink

Edwin van Ouwerkerk Moria wrote:

are prompted for possible values for the template variables). Does
anyone get the following behaviour?


Ah - as a workaround: switching off 'Reformat according to style' fixes
this bug.

CU,
Edwin

0

Please sign in to leave a comment.