Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Dynamically generating source for IClassFile - advice needed...

Hello all,

I'm trying to create a plugin that will allow automatic decompilation of
class files with no source code available
(http://sourceforge.net/projects/jadclipse). Whether or not it's legal to
decompile is a separate discussion... I need an advice on how I could
accompilsh this without using dirty code calling internal methods and at the
same time have it integrated with JDT. I have a beta version functional but
it relies on internal classes:

 org.eclipse.jdt.internal.ui.javaeditor.IClassFileEditorInput
 org.eclipse.jdt.internal.core.BufferManager

Not surprisingly, the plugin breaks whenever there's a change in relevant
intrenal API. I tried to create my own class file editor and use
org.eclipse.ui.editors EP, but I get an instance of
org.eclipse.jdt.internal.ui.javaeditor.InternalClassFileEditorInput in
init() method, which is internal again. Is there a "clean" way to do it?
Does anyone think that org.eclipse.jdt.SourceLocators extension point would
make sense for such application if it existed?

Thanks,
Vlad.



Back to the top