lifespan of CompilationUnit? [message #237721] |
Fri, 27 October 2006 00:59 |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.24025 seconds