Navigation (and shotcuts) in Eclipse [message #126324] |
Thu, 11 December 2003 17:13 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: steff.designware.dk
Hi
Im used to use IntelliJ IDEA and is very happy with that. Now Im "forced" to
shift to Eclipse, so I what to know how to do some of the things that I do
again and again i IDEA.
Regarding navigation:
- In IDEA you can press Ctrl + B to go to the declaration of the "thing"
your cursor stands on. If the "thing" is a class you go to the source of
that class. If the "thing" is a method you go to that method (also if it is
on another class). Etc. IDEA always show you the declarating class. If it
knows the source (that is if the source is in IDEAs sourcepath) it shown you
that, and if it does not know the source (only the class can be found in
IDEAs classpath) is just shows you a "java-source-view" of the class without
implementations. If you install a JAD (JAva Decompiler) plug-in you can
always get the source, since IDEA will just (on-the-fly) decompile the class
for you if it does not know the source. Is all this possible in Ecplise?
How?
- If your cursor stands on an method-call to a method declared in an
interface, Ctrl + B will bring you to the declaration of the method in the
interface source. Often you want an implementation of the method instead.
Pressing Ctrl + Alt + B instead will bring you to the method of the
implementing class. If IDEA can find more than one implementing classes, it
will show you a list of implementing classes that you can choose from. After
choosing you will navigate to the implementation of the method in the
selected class. JAD also workes here. Is this possible in Eclipse? How?
Thanx in advance for you responce.
Per Steffensen
|
|
|
|
Re: Navigation (and shotcuts) in Eclipse [message #126437 is a reply to message #126324] |
Thu, 11 December 2003 20:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-user.jibeinc.com
Per Steffensen wrote:
> Hi
>
> Im used to use IntelliJ IDEA and is very happy with that. Now Im "forced" to
> shift to Eclipse, so I what to know how to do some of the things that I do
> again and again i IDEA.
>
> Regarding navigation:
> - In IDEA you can press Ctrl + B to go to the declaration of the "thing"
> your cursor stands on. If the "thing" is a class you go to the source of
> that class. If the "thing" is a method you go to that method (also if it is
> on another class). Etc. IDEA always show you the declarating class. If it
> knows the source (that is if the source is in IDEAs sourcepath) it shown you
> that, and if it does not know the source (only the class can be found in
> IDEAs classpath) is just shows you a "java-source-view" of the class without
> implementations. If you install a JAD (JAva Decompiler) plug-in you can
> always get the source, since IDEA will just (on-the-fly) decompile the class
> for you if it does not know the source. Is all this possible in Ecplise?
> How?
Use F3 to jump to the source for a class or method or field that your
cursor is on.
For JAD integration, get the JADClipse plug-in from
http://sourceforge.net/projects/jadclipse/
HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
|
|
|
Re: Navigation (and shotcuts) in Eclipse [message #126499 is a reply to message #126349] |
Thu, 11 December 2003 23:00 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: steff.designware.dk
Ctrl+T does not find implementations of interfaces of interface-methods for
me. I've tried to make an interface IHello with a method hello(), and a
class Hello implementing it. Then I make a class HelloUser containing the
code:
IHello h = new Hello();
h.hello();
When I place the cursor on the hello() part of h.hello() and press F3 i go
to the method hello() in IHello. As expected. If I press Ctrl+T instead
nothing happens. According to the answer by Adam Kiezun I would expect to go
to the method hello() in class Hello. Why does it not work? What should I
do?
Thanx
"Adam Kiezun" <akiezun@to.reply.remove.whats.unneeded.mit.edu> skrev i en
meddelelse news:3FD8B34D.4090804@to.reply.remove.whats.unneeded.mit.edu...
> F3,
> Ctrl+T
>
> a.
>
|
|
|
Re: Navigation (and shotcuts) in Eclipse [message #126589 is a reply to message #126499] |
Fri, 12 December 2003 03:11 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: akiezun.cuthis.mit.edu.andthis
> When I place the cursor on the hello() part of h.hello() and press F3 i go
> to the method hello() in IHello. As expected. If I press Ctrl+T instead
> nothing happens. According to the answer by Adam Kiezun I would expect to
go
> to the method hello() in class Hello. Why does it not work? What should I
> do?
switch to a newer build - looks like you're using something as old as 2.1.*
in 3.0 m5 you will see all subclasses of IHello that implement hello. one
click and you're there
a.
|
|
|
Re: Navigation (and shotcuts) in Eclipse [message #127018 is a reply to message #126324] |
Fri, 12 December 2003 20:40 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: steff.designware.dk
A few more things that I can do in IDEA that I would also like to be able to
do in Eclipse - but how (shortcut keys):
- IDEA Ctrl + N: Enables you to edit (the start) of a Java-class name, at
IDEA will show you a list of maching class-names. If you click one in the
list, you will navigate to the source of that class.
- IDEA Ctrl + Shift + N: Almost that same at the above, but for all files
(not only Java files)
- IDEA Ctrl + L: Prettyprints (reformats) you code, to make it nicely
indented and so.
- In IDEA if you paste some code, and it uses alot of classes that are not
yet importet in the class into wich you paste, IDEA will popup a list of all
the classes, and ask you if you want to import them in you class.
- IDEA Ctrl + Alt + left/right: Goes backward/forward in the history of
navigation-steps. It seems that Eclipse has something simular with Ctrl +
left/right, but it does not work as well?
Can you give me some shortcuts to simular functionality in Eclipse?
Thanx
|
|
|
Re: Navigation (and shotcuts) in Eclipse [message #127190 is a reply to message #127018] |
Sat, 13 December 2003 18:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: akiezun.to.reply.remove.whats.unneeded.mit.edu
ctrl+shift+t : open type
ctrl+shift+r : open resource
ctrl+shift+f : format
ctrl+shift+o : organize imports
btw. you will find all these if you open the menus in the menubar
a.
|
|
|
Powered by
FUDForum. Page generated in 0.03879 seconds