Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » lifespan of CompilationUnit?
lifespan of CompilationUnit? [message #237721] Fri, 27 October 2006 00:59
Eclipse UserFriend
Originally posted by: wharley.bea.com

I create a new ICompilationUnit, call becomeWorkingCopy() on it, and get its
IBuffer. I check its contents before I set them, and miraculously, they are
already set to what I was about to set them to! The file that backs the
CompilationUnit does not yet exist on disk.

Does a WorkingCopy live across instances of the IDE? That is, if I create a
working copy for some IFile (that doesn't exist on disk), set its contents
and then exit the editor without saving or discarding it, and then restart
the editor and get a working copy for the same IFile, will the contents be
preserved?

If so, where in the metadata is this being stored, and how can I clear it?

Thanks!
Previous Topic:Step by step instructions for creating a standalone Java app ?
Next Topic:Custom text for breakpoints
Goto Forum:
  


Current Time: Sat Jul 26 03:03:02 EDT 2025

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

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

Back to the top