Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38918 > unrolled thread
| Started by | Graeme Geldenhuys <graemeg@example.net> |
|---|---|
| First post | 2019-04-16 20:58 +0100 |
| Last post | 2019-04-18 13:29 +0100 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
How to let Eclipse browse src.zip instead of decompiling class files Graeme Geldenhuys <graemeg@example.net> - 2019-04-16 20:58 +0100
Re: How to let Eclipse browse src.zip instead of decompiling class files Joerg Meier <joergmmeier@arcor.de> - 2019-04-16 22:17 +0200
Re: How to let Eclipse browse src.zip instead of decompiling class files Graeme Geldenhuys <graemeg@example.net> - 2019-04-17 17:26 +0100
Re: How to let Eclipse browse src.zip instead of decompiling class files Joerg Meier <joergmmeier@arcor.de> - 2019-04-17 19:18 +0200
Re: How to let Eclipse browse src.zip instead of decompiling class files Graeme Geldenhuys <graemeg@example.net> - 2019-04-18 13:29 +0100
| From | Graeme Geldenhuys <graemeg@example.net> |
|---|---|
| Date | 2019-04-16 20:58 +0100 |
| Subject | How to let Eclipse browse src.zip instead of decompiling class files |
| Message-ID | <q95c4d$jqo$1@gioia.aioe.org> |
Hi, Anybody know how you can set up Eclipse IDE so that when I Ctrl+LClick a Java RT class, it opens the original *.java file located in the src.zip - instead of showing me a decomplied *.class file. IntelliJ IDEA shows me the true .java file, but Eclipse keeps showing me a decompiled *.class (even though I specified the src.zip in the Installed JRE settings). Regards, Graeme
[toc] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2019-04-16 22:17 +0200 |
| Message-ID | <9omnwh3hakjy.10hqwg2z351pe.dlg@40tude.net> |
| In reply to | #38918 |
On Tue, 16 Apr 2019 20:58:07 +0100, Graeme Geldenhuys wrote: > IntelliJ IDEA shows me the true .java file, but Eclipse keeps showing me > a decompiled *.class (even though I specified the src.zip in the > Installed JRE settings). Where/how did you specify it ? The correct place to specify it is under: Window/Preferences/Java/Installed JREs, select yselect "Source Attachment", click on "Source Attachment", External Location, External File. Should look like this: <https://i.imgur.com/M8hIewY.png> Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | Graeme Geldenhuys <graemeg@example.net> |
|---|---|
| Date | 2019-04-17 17:26 +0100 |
| Message-ID | <q97k3o$m9m$1@gioia.aioe.org> |
| In reply to | #38920 |
On 16/04/2019 21:17, Joerg Meier wrote: > Where/how did you specify it ? The correct place to specify it is > under: Thanks for the info, but that is what I already have. So why when I Ctrl+LClick on any JRE supplied class, does Eclipse open a *.class file in the editor. I see source code, but the file name of the opened tab shows <something>.class as the name. If I do the same action in IntelliJ IDEA, it opens a *.java file and the full path clearly shows it used the src.zip file. Regards, Graeme
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2019-04-17 19:18 +0200 |
| Message-ID | <15lyzweo6e2qu$.1wdkas5yipsg0$.dlg@40tude.net> |
| In reply to | #38924 |
On Wed, 17 Apr 2019 17:26:33 +0100, Graeme Geldenhuys wrote: > On 16/04/2019 21:17, Joerg Meier wrote: >> Where/how did you specify it ? The correct place to specify it is >> under: > Thanks for the info, but that is what I already have. So why when I > Ctrl+LClick on any JRE supplied class, does Eclipse open a *.class file > in the editor. I see source code, but the file name of the opened tab > shows <something>.class as the name. > If I do the same action in IntelliJ IDEA, it opens a *.java file and the > full path clearly shows it used the src.zip file. You'll be happy to know that you already have it set up correctly then. When going to the definition of dependencies, Eclipse just titles the windows as ".class". What it displays is actually the source code, if it is attached. You can confirm this by going to pretty much any Java class and confirming that you are, in fact, seeing comments and Javadoc, which would not be available from decompilation. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | Graeme Geldenhuys <graemeg@example.net> |
|---|---|
| Date | 2019-04-18 13:29 +0100 |
| Message-ID | <q99qid$g4c$1@gioia.aioe.org> |
| In reply to | #38925 |
On 17/04/2019 18:18, Joerg Meier wrote: > You'll be happy to know that you already have it set up correctly then. Awesome, thanks. So it's just a Eclipse tab naming oddity. Good to know. > You can confirm this by going to pretty much any Java class and confirming > that you are, in fact, seeing comments and Javadoc, which would not be > available from decompilation. Yup, I see the javadoc comments. Thanks for your help. Regards, Graeme
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web