开发者

can I add import when editing method body code template in eclipse

开发者 https://www.devze.com 2023-01-13 22:45 出处:网络
I am trying to edit the template of creating a new method. I want to do something like this: throw new mypackage.UnimplementedException();

I am trying to edit the template of creating a new method. I want to do something like this:

throw new mypackage.UnimplementedException();

but I want to add my package to imports and not to declare it with full package on the method body. I tried using:

 ${:import(mypackage.UnimplementedException)}

but it d开发者_StackOverflow社区oesn't work (works only in editor templates)


I submitted a request for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=333313

0

精彩评论

暂无评论...
验证码 换一张
取 消