Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:50
Vijay Ganesan is currently offline Vijay GanesanFriend
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
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: Fri Dec 06 05:47:47 GMT 2024

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

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

Back to the top