Сделал проект. В нем класс, где есть main-функция. Созданы еще несколько классов. Переменная типа "послединй класс" используется в предпоследнем классе и т.д. для иллюстрации:
public class A{
public B b;
public static void main(String[] args) {...}
}
public class B{
public C c;
...
}
public class C{
public D d;
...
}
public class D{
...
}
это схематично, ну и конечно каждый класс в отдельном файле.
Просто если мышью наведу на переменные А, B, C — видно ( и можно перейти в исходный код) кто где используется.
А как узнать где "задействован" последний class D ? Кем он используется?
Здравствуйте, Аноним, Вы писали:
А>А как узнать где "задействован" последний class D ? Кем он используется?
Implementing classes / derived classes can be searched
for via the hierarchy view while method / class / variable
usage can be searched for using the "References" contextual
menu, different scopes being proposed, just like in IDEA.
Eclipse has a special little feature: when set, when you
place the cursor on a java element (class, variable,
parameter, etc) it will highlight the positions in the code
where that element is used. I'm not a big fan of it as I
feel it kinda pollutes the screen and therefore I disable
it every time I use Eclipse, but many people love it. IDEA,
on the other hand, implements a more precise method usage
search, letting you find methods that implement an
interface method or an abstract method in a class or
methods that override a method of a class. I haven't been
able to find a similar functionality in Eclipse
http://www.thekirschners.com/articles/Java-IDE-Comprisson.html
Здравствуйте, Blazkowicz, Вы писали:
Спасибо!
Еще : где в настройках директория проекта прописывается?
B>Здравствуйте, Аноним, Вы писали:
А>>А как узнать где "задействован" последний class D ? Кем он используется?
B>B>Implementing classes / derived classes can be searched
B> for via the hierarchy view while method / class / variable
B> usage can be searched for using the "References" contextual
B> menu, different scopes being proposed, just like in IDEA.
B> Eclipse has a special little feature: when set, when you
B> place the cursor on a java element (class, variable,
B> parameter, etc) it will highlight the positions in the code
B> where that element is used. I'm not a big fan of it as I
B> feel it kinda pollutes the screen and therefore I disable
B> it every time I use Eclipse, but many people love it. IDEA,
B> on the other hand, implements a more precise method usage
B> search, letting you find methods that implement an
B> interface method or an abstract method in a class or
B> methods that override a method of a class. I haven't been
B> able to find a similar functionality in Eclipse
B>http://www.thekirschners.com/articles/Java-IDE-Comprisson.html
Здравствуйте, Blazkowicz, Вы писали:
B>I haven't been
B> able to find a similar functionality in Eclipse
хм. а ctrl + T не оно?