tag:blogger.com,1999:blog-4241252330993994284.post4106663522417735495..comments2023-06-17T04:40:19.784-04:00Comments on Loving Software Blog: Eclipse Tip: Static ImportsCarlus Henryhttp://www.blogger.com/profile/10118327352251205251noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4241252330993994284.post-41327039902659413182011-12-05T08:31:52.950-05:002011-12-05T08:31:52.950-05:00Loving it, just used this my new Mockito unit test...Loving it, just used this my new Mockito unit tests! ThanksBlundellhttps://www.blogger.com/profile/11418464358922949230noreply@blogger.comtag:blogger.com,1999:blog-4241252330993994284.post-20514168514860824472011-01-19T06:11:15.861-05:002011-01-19T06:11:15.861-05:00Great tip!! Thank you.Great tip!! Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4241252330993994284.post-56271817628445062042011-01-17T01:07:10.463-05:002011-01-17T01:07:10.463-05:00Thanks for sharing your post and it was superb .I ...Thanks for sharing your post and it was superb .I would like to hear more from you in future too.Inventory Management Softwarehttp://www.blackitsoft.com/inventory-pos-software.aspxnoreply@blogger.comtag:blogger.com,1999:blog-4241252330993994284.post-41201177299166232672008-07-31T18:21:00.000-04:002008-07-31T18:21:00.000-04:00Actually, that only works if there's a static impo...Actually, that only works if there's a static import already there. Then Eclipse will use the .* form to statically import everything from the specified class.<BR/><BR/>Unfortunately, it won't add new static imports.<BR/><BR/>I figured out when this is a problem for me: when I introduce a static-method call with a template (like "ear" for an EasyMock "expect().andReturn()".)Jeremy Frenshttps://www.blogger.com/profile/13179698525098485533noreply@blogger.comtag:blogger.com,1999:blog-4241252330993994284.post-2720623391651365872008-07-31T10:17:00.000-04:002008-07-31T10:17:00.000-04:00Funny you should mention this. I just stumbled ac...Funny you should mention this. I just stumbled across a post that tells exactly how to do just what you are looking for.<BR/><BR/><A HREF="http://gleamynode.net/articles/1533/fixing-eclipse-organize-imports-annoyance-for-static-imports" REL="nofollow">Organizing Static Imports</A>Carlus Henryhttps://www.blogger.com/profile/10118327352251205251noreply@blogger.comtag:blogger.com,1999:blog-4241252330993994284.post-34920021928902135812008-07-31T09:49:00.000-04:002008-07-31T09:49:00.000-04:00Hey, Carlus! I stumbled on this Eclipse feature a...Hey, Carlus! I stumbled on this Eclipse feature a while ago but had forgotten about it. Thanks for reminding me.<BR/><BR/>One question: setting this content assist helps with ctrl-space completion, but it apparently doesn't help with Source -> Organize Imports. I know, who would do things this way? But sometimes it would be useful. Do you know if there's a separate setting for Organize Imports? Can you tell me if you do (smile)?Jeremy Frenshttps://www.blogger.com/profile/13179698525098485533noreply@blogger.com