I found that on OSX you can change this setting in the following file:
~/Library/Preferences/IntelliJIdea2016.1/options/options.xml
Add the following properties:
<property name="decompiler.use.line.mapping" value="true" />
<property name="decompiler.dump.original.lines" value="true" />
ok, as there are no news regarding this, I've created a little plugin which decompiles the jar file with compiled code to new *-sources.jar file using build-in Intellij fernflower decompiler and attaches sources to project. anyone interested, can take a look at decompile and attach plugin in jetbrains plugin repository
Update
answering my question about line numbers in decompiled code using fernflower. I found 'decompiler.use.line.table' flag in Intellij's fernflower which preserves line numbers.
As the author has forgotten to add a detailed usage listing
No, I haven't :) See readme.txt in your jar for the full documentation.
Current source code and documentation of Fernflower is available here: https://github.com/fesh0r/fernflower
Command line options are listed there, I do not copy-paste them from github.
Online version of Fernflower is now available on this site: http://www.javadecompilers.com/
For Eclipse 2018-09 , the problem was related to " class without source "
I had resolved this issue by going to:
- Preferences
- General
- Editors
- File Associations
- Class without source
and setting decompliler viewer as default : see the following screen shot:
Obviously I mixed the actual JD-eclipse-plugin an a plugin called JadClipse for Eclipse which is a slightly different plugin from eclipse marketplace. Thus when I followed the installation instructions of JD-eclipse, I could set the options for the screenshot posted within the question. So I set JD-eclipse as default for both *.class-files with and those without source-code.
Second mistake I did was a pretty silly and obvious one, namely that I wanted to browse the jar-files from within WEB-INF-folder of my Tomcat instead of from within Java Resources. Thus I could not dive into the jar-files at all hindering me to get to the class-level and thus to decompile those classes contained within the jar.
I hope this helps anyone outside also having trouble with the plugin for eclipse.