Eclipse Implementation View

189 views Asked by At

Is there a notable plugin or a feature I am overlooking that allows an "Implementation view" similar to the "Declaration view" already available in Eclipse Helios? The code I am working with is plagued with interfaces and it would be infinitely useful to see what a method call does at a glance without toggling over to a new tab.

Note: I already have hyperlinking set up and use Ctrl+T extensively, what I am looking for is something like what you'd find by using Window-> Show View-> Other -> Java -> Declaration.

EDIT:

Example code:

public interface MyInterface{
  public void doSomething();
}

public class MyImplementation implements myInterface{
  public void doSomething{
    //Do something
  }
}

public class MyClass{
  public void someMethod(){
    MyImplementation impl = new MyImplementation();
    impl.doSomething();
  }
}

Placing the cursor on doSomething() in MyClass.someMethod() will display public void doSomething(); in the Declaration view. What I would like to see is:

public void doSomething{
  //Do something
}

I understand that this would not work in the case of multiple possible implementations, yet neither would the hyperlinking (AKA Ctrl+Click) I mentioned earlier and Eclipse has no problems supporting that.

1

There are 1 answers

4
Scientious On

According to this answer, there is a similar feature that allows you to achieve identical goals. You'll just have to navigate to Eclipse > Preferences > Java > Editor > Only show the selected Java element if you're running on a Mac, and Window > Preferences > Java > Editor > Only show the selected Java element if you're using a Windows computer, or possibly any other OS. I hope my answer satisfied you!

EDIT: You may be looking for this: Window > Show View > Other > Java > Declaration, specified here.