Live Templates and static imports

Hi.

I'm trying to get a live template which uses a static method to work. What I currently have is:

abbrev.=aE ,   TemplateText=org.junit.Assert.assertEquals($END$);

this creates:


import org.junit.Assert;
....
  Assert.assertEquals( );


I would like it to be:
import static org.junit.Assert.assertEquals;
...
  assertEquals( );


Is there a way to achvieve this in live templates?
I'm using 9.0 (#IU-93.13)

regards
gretar

1 comment
Comment actions Permalink

Unfortunately, currently there is no way to achieve this. Please vote for:http://youtrack.jetbrains.net/issue/IDEABKL-5119

Bas

0

Please sign in to leave a comment.