Skip to main content



      Home
Home » Eclipse Projects » Technology Project and PMC » Using JavaCore/JDT Element API outside of Eclipse Env.
Using JavaCore/JDT Element API outside of Eclipse Env. [message #51490] Thu, 03 April 2003 17:50
Eclipse UserFriend
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
Previous Topic:Free text search for multiple files (grep-like)
Next Topic:Using JavaCore/JDT Element API outside of Eclipse Env.
Goto Forum:
  


Current Time: Tue May 06 03:35:36 EDT 2025

Powered by FUDForum. Page generated in 0.04980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top