I don't know if this could be achived easily with a simple
plug-in (I think so) but it would be really nice to be able
to diff two compiled Java classes (.class files).
As you may know Java compiled classes could be
dissasembled in a really near to the source way so it
would be like comparing .java sources.
Even if currently I can use the right button to open such
files with the "Open With" (or "Open" if I assign a Java
Decompiler to .class files) it would be great if class files
passed through a Java decompiler (possibly jad as it's
one of the best available) and the "source code"
generated opened in diff windows. I don't know if this
could be used for other binary file types but, even if it
could only be used with Java .class files, it would be
great.
Regards.
FBCrack
Logged In: YES
user_id=631874
Yes, this sounds like a good idea for plugin.
Anyway we are not adding code for specific fileformats
inside WinMerge core. All this kind of additional code also
increases possibility for bugs/errors. And thats not nice
for tool we use to handle files in version control...
Logged In: YES
user_id=222006
I agree, core code should be as simple as possible as it's main
function should be to diff text files (and currently it's doing
extremely well, I must say)
Thank you for this great program I can't live without it. It
saved me tons of work.
Thanks.
Logged In: YES
user_id=804270
I am not going to develop myself a plugin that I don't use. But
I can help for developping it in C++.
I have updated the doc for plugins. In the source of next
experimental (2.1.7.8 probably) or through cvs, in
directory "Plugins", read the file "readme_developpers.txt".
Read the section : "How to write plugins quickly ?"
As original plugin, take "HideFirstLetter", because it is the API
you need.
You just need to adapt the methods :
get_PluginDescription
get_PluginFileFilters
UnpackFile (call your java decompiler from here)
PackFile (call a java compiler if you have one)
Really I am not going to develop this plugin, I don't use java.
But if you wish to do it, please don't hesitate to ask for much
information.
Your questions (and the answers) can probably help to write
a FAQ for plugins developpers.