aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse error when using auto insert of type arguments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse error when using auto insert of type arguments" Watch "eclipse error when using auto insert of type arguments" New topic
Author

eclipse error when using auto insert of type arguments

Karina Guenther
Ranch Hand

Joined: Sep 16, 2005
Posts: 55
I frequently use the popup function to add type arguments to ArrayList or HashMap in Eclipse. All of a sudden it's not working. When I roll-over the item I want to add my arguments to and select from the popup the 'infer generic type arguments' I get an error box with the following message:

"To activate this refactoring, please select a set of compilation units, packages, source folders or Java projects".

Has anyone else seen this and knows how I can get things to work again? All I found on the web was something about a refactoring but that was fixed a year or 2 ago.

I don't know if this is a factor but we are doing manual ant builds - not Eclipse's auto build feature. My compiler is java 1.5_12.
Also, it doesn't automatically find my Java tasks. It does find xml, jsp and html todo's though.
I'm using Eclipse Galileo for java EE developers 1.2 - Eclipse platform 3.5.2.
Karina Guenther
Ranch Hand

Joined: Sep 16, 2005
Posts: 55
Well, it looks as if I fixed it. I changed the build's source code locations and then ran my ANT build, did a refresh on the project and it looks as if things work again.

I still haven't figured out why the tasks that I setup in java aren't automatically added to the tasks list - and I have the correct view open as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse error when using auto insert of type arguments