Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Why would I use working copies to manipulate java code
Why would I use working copies to manipulate java code [message #695691] Tue, 12 July 2011 10:36 Go to next message
john doe is currently offline john doeFriend
Messages: 74
Registered: June 2011
Member
Hey,

I was reading through this article on how to manipulate java source code using JDT core here. It refers to being able to modify an ICompilationUnit by using an 'in-memory copy' of the unit. However, why would I do this when I can just modify the ICompilationUnit directly, without making a copy?

---------------------------------------------------------
Edit - Apologies, I posted this in the wrong forum.
I've reported this post to the mods asking them to move it
to the JDT forum.

Thanks

[Updated on: Tue, 12 July 2011 10:38]

Report message to a moderator

Re: Why would I use working copies to manipulate java code [message #695692 is a reply to message #695691] Tue, 12 July 2011 10:37 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

is this an Xtext-Question?

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Why would I use working copies to manipulate java code [message #695694 is a reply to message #695692] Tue, 12 July 2011 10:39 Go to previous message
john doe is currently offline john doeFriend
Messages: 74
Registered: June 2011
Member
Hi Alex, please see my update on my original post.
I accidentally posted this in the wrong forum. I need a mod to move it to the JDT forum. regards JD
Previous Topic:Restricting cross-refference content assist
Next Topic:Yakindu Statecharts tools
Goto Forum:
  


Current Time: Wed Sep 23 03:00:14 GMT 2020

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

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

Back to the top