V
Virgil Green
Virgil said:Since the discussion thus far has been whether the flat file being
edited or some version squirrelled away in the bowels of Eclipse is
the "master" copy, then the "authoritative" copy I've referred to is
the "master copy. Several of us have pointed out and demonstrated
that the flat files are the "master" copy. Other than you, no one
I've seen in this thread has yet confirmed or experienced the
behavior your describe. Rather they have confirmed and experienced
exactly the opposite.
Let's not expand this to dev versus prod. Editing is done on dev
versions and that's where the discussion should be kept. The text in
RAM? That's getting a bit ridiculous... but, if you must, the
authoritative version is the version about to be typed and housed
only in the mind of the developer.
No. Several of us have reported the opposite and you continue to
posit that this behavior exists in Eclipse but none of us have been
able to reproduce the behavior you describe.
And, for your information, I just recreated the experiment you
continue to suggest and it did exactly what I expected it to do.
I create a new Project called Playland.
I added a new class called MyClass. It contained no code other than
the public class declaration.
I saved this new class.
I closed the editor.
I closed Eclipse.
I started Textpad and opened
c:\eclipse\workspace\Playland\MyClass.java.
I added one line of code - "System.out.println("This is a test");"
I saved the file in Textpad and closed Textpad.
I started Eclipse.
I set focus on the Package Explorer.
I expanded the project Playland.
I expanded the src directory.
I expanded the package I put my class in.
I double-clicked on MyClass.java.
I observed that the code entered via TextPad while Eclipse was closed
was present in the editor in Eclipse.
I left the editor open for the class in Eclipse.
I closed Eclipse.
I started Notepad and opened the same file.
I placed the code I previously added into a proper main method (having
failed to do so the first time).
I save the file in Textpad.
I closed Textpad.
I stared Eclipse.
The editor I left open when Eclipse was close was opened
automatically and it contained the new code changes I just made in
Eclipse.
That last step should have read "just made in Textpad".