Using JavaCore/JDT Element API outside of Eclipse Env. [message #51490] |
Thu, 03 April 2003 22:50 |
Vijay Ganesan Messages: 40 Registered: July 2009 |
Member |
|
|
Hi!
The Java Element API in JDT Core provides some elegant mechanisms for
manipulating Java source code. I'd like to use it in my standalone Java
application (outside of the Eclipse enviornment). Is this possible? I want
to be able to manipulate my Java files using the following types of
methods:
ICompliationUnit.getType()
IType.createMethod()
IType.delete()
etc.
Looks like the entry point to the element API has to be the JavaCore
class. However an instance of JavaCore constructed using:
JavaCore(IPluginDescriptor pluginDescriptor)
requires a IPluginDescriptor.
Any ideas on how I can use this API in a non-plugin enviornment? I could
use the generic AST API which is similar to antlr but that does not seem
to offer the convenient methods for simple Java source modifications.
thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02513 seconds