Community
Participate
Working Groups
HEAD (see bug 311283) The actions which are enabled in the Navigate menu like Open Implementation, Open Hyperlink, Open Super Implementation .. should work as on normal Java files instead of throwing an error dialog. Steps: 1. create a Java project with 'src' as source folder (default out of the box) 2. create file 'Test.java' in the project (not in 'src' folder) with this: import java.util.HashMap; public class Test { void foo() { bar(); } private void bar() { HashMap m= new HashMap(); m.isEmpty(); } } Place the caret on Hashmap and invoke Open Implementation (or other commands mentioned above) => Throws a "Cannot Perform Operation" dialog The commands are enabled in the context menu as well as in Navigate menu but we do a check when we run the action ActionUtil.isProcessable(..) which immediately throws a dialog when the resource is not on the build path even though we could go ahead and do the required action on the element. The fix would be to remove this check which is unnecessary similar to what was done for OpenAction. We need to check the behaviour of the other Open actions (Open Call Hierarchy, Open Type Hierarchy...) and disable the actions that do not work as expected in all places.
We shouldn't spend too much time on these corner cases as long as it doesn't blow up.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.