Hi
I have developed the plug-in fragment which adds in JD-Eclipse an ability of realignment of a decompiler output. To use this feature it is necessary to open the menu
Preferences/General/Editors/File Associations and to select "*.class" file type and to choose "Realignment for JD Class File Editor" for Associated editors. Other ability is
batch decompiling of files of classes. To use this feature it is necessary to open the menu Preferences/Java/Decompiler/Batch Decompiling and click button "Open dialog".
Installation:
Put a file realignment.jd.ide.eclipse_1.0.0.jar in eclipse/plugins directory.
Download realignment.jd.ide.eclipse_1.0.0.jar
I have try this plugin 1.0.1 and it doesn't work completely.
Using two tested .class opened it realigns only rows after 51 (before no) and for the second example only after row 120.
Class come from a commercial jar, without debug simbols and maybe obfuscation.
Existing limitation: the realignment is performed only for the methods. To work properly it is necessary that the property "Display line numbers" in menu "Preferences/Java/Decompiler" was active.
The batch compiling works perfectly for me. The line numbers are now correct for debugging. Important note, the output folder must exist, otherwise, clicking on the OK button does nothing.
On the other hand, these instructions that you posted do not work for me:
Preferences/General/Editors/File Associations and to select "*.class" file type and to choose "Realignment for JD Class File Editor" for Associated editors.
"Realignment for JD Class File Editor" does not show up in the list of editors.
Thanks for your efforts!
I had the same issue, since I am using Eclipse 3.3.
open the realignment.jd.ide.eclipse_1.0.1.jar and edit the line:
<?eclipse version="3.4"?>
Change it to a previous verion, like this (I put the same as the fragment.xml from Jd-eclipse):
<?eclipse version="3.2"?>
Regards,
Excellent plugin ...we are using it here at work. Both features (batch/real) mode are great. Lately we are experiencing a problem such that Eeclipse crashes after stepping through the code! An error is reported in the logs. It appears it crashes out side the VM. Any idea! or some one here experienced such behavior.
When the next release for the plugin ?
Thanks
I have read your article for a several times and I was impressed by it! It was very interesting so I shared it with my friends. Hope they will like it too.
Dog obedience training tips it our new project about dog trainings.
I am going to download realignment.jd.ide.eclipse_1.0.0.jar now and will install it as you told by putting it in eclipse/plugins directory. I really liked your add-on that adds in JD-Eclipse an ability of realignment of a decompiler output. The steps to be performed in order to use this plugin are also provided in this post. I liked all its features of order fulfillment described in this post and I will suggest this plugin to my friends too.
where is the download site?...
http://java.decompiler.free.fr/jd-eclipse/downloads/realignment.jd.ide.e...
This is really useful - are you going to integrate it with the main JD-Eclipse plugin so I don't have to install it manually every time? Thanks -
Nick
I have copied the jar (tried both 1.0.0 and 1.0.1) into the plugins folder and restarted eclipse (3.4). it does not show up. What am I doing wrong?
I can't download realignment.jd.ide.eclipse_1.0.0.jar, what's the problem?
Hello,
Why do not try the version 1.0.1 ?
http://java.decompiler.free.fr/jd-eclipse/ downloads/realignment.jd.ide.eclipse_1.0.1.jar
Regards.
I tried that one, but I still can't download it. Could you please send it to me? My email is wubojie@gmail.com. Thanks a lot.
Excelent extension!
I still did not use it for debugging, but I'm going to try it in 30 minutes :)
Thanks a lot mate!
New version realignment.jd.ide.eclipse_1.0.2.jar - https://sourceforge.net/projects/realignmentjd/files/
Durch das macht nichts Sprachkenntnis beruecksichtigen humanitaer bewahrt duempeln und ganze Zahl neunzig tun das geld verdienen uns Doktorand.
I downloaded version 1.0.2. I selected to display line numbers, selected the Realignment plugin as the default .class file handler and removed all others (except one, which was "locked"). When I open a .class file, it shows the same mis-alignment as shown by JD-Eclipse without realignment. In addition, when I try to use the batch alignment dialog, I can't exit the dialog after filling in the blanks for output zip file and path, even though the folder exists. No error message appears, but the dialog stays open. I have to click "Cancel" to dismiss the dialog. Any ideas? Platform is RAD 8.0.4, which uses the Eclipse 3.6 core.
The realignment feature is actually mostly working, contrary to my post above. The class file I was looking at continues to be misaligned, but all others appear to be aligned very nicely. (Awesome!)
The batch feature still doesn't appear to do anything, however, and I get the same behavior as I described above.
23 comments: