Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Manupulating java source code
Manupulating java source code [message #257021] Thu, 23 October 2008 08:25 Go to next message
Kamakhya Abhishek is currently offline Kamakhya AbhishekFriend
Messages: 6
Registered: July 2009
Junior Member
Hi all
I need to manipulate java source code. I have a compilationunit. But
i am not able to figure out how to get an ICompilationUnit from cu.

Also is there any other way i can manipulate java source file.

Please help. It's very urgent.


Thanks in advance
K.Abhishek
Re: Manupulating java source code [message #257025 is a reply to message #257021] Thu, 23 October 2008 13:43 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You want to use ASTRewrite or other AST manipulation tools. See the JDT
Plug-in Developers Guide, you can start with

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.jdt.doc.isv/guide/jdt_api_manip.htm


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Alt+Shift+S - source quick menu - howto add new item here
Next Topic:Error launching the preference page
Goto Forum:
  


Current Time: Thu Jul 25 06:21:55 GMT 2024

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

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

Back to the top