This is a migrated thread and some comments may be shown as answers.

Go to Implementation feature

1 Answer 51 Views
Code Navigation and Search
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Will Huang
Top achievements
Rank 2
Will Huang asked on 27 May 2010, 06:34 PM
Hi,

The most of all my class are defined "Interface" first, then implement a concrete class that implement this Interface. Everytime I want to navigate to my concrete class are very inconvenient.  This is sometimes called Inversion of Control (IoC) pattern.  Does JustCode could provide a feature that could jump from a method of a interface to it's concrete implementation class?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 01 Jun 2010, 12:42 PM
Hello Will,

Considering this code

public interface ITest
{
        void Test1();
        void Test2();
}

public class Class1 : ITest
{
    public void Test1() {  }

    public void Test2() {  }
}

public class Class2 : ITest
{
    public void Test1() {  }

    public void Test2() {  }
}

static void Main(string[] args)
{
    ITest test = new Class1();
    test.Test1();
}

you can do "Go To Definition" on Test1() of test, which will navigate you  to the definition in the interface. There is an arrow left to the definition of the method. If you have only one class that implements the interface, clicking on the arrow will do "Find Overriding Members" that will navigate you to the actual implementation. If you have several classes that implement the interface, "Find Overriding Members"  will popup a dialog with the implementations of the method in the classes. You can navigate to the actual method from there. 

You can also check here:
JustCode Documentation
Find Overridden Members
Find Overriding Members

Regards,
Svetlozar Angelov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Code Navigation and Search
Asked by
Will Huang
Top achievements
Rank 2
Answers by
Svetlozar
Telerik team
Share this question
or