Roedy said:
Just what do you mean by "authorative"? Consider the traditional
non-eclipse way of coding. What is authorative?
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.
1. the latest CVS checking, the latest CVS release checkin, the flat
files on your machine. The text in RAM you are editing?
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.
You can choose to take any version the one to work on.
the flat files are authorative is the sense if Javac came knocking,
those are the ones it would take.
Authorative might mean -- the latest version you can expect to have in
the event of a power failure.
In which case that would be the flat files.
I contend that with Eclipse, by that last definition the flat files
are not authorative. The internal files in Eclipse are what it will
display on screen after a power failure. It only uses the flat files
if you ask it to with a refresh -- which is like a restore from first
level backup.
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.
So, there you have a complete set of instructions. The only auto-refresh
options I can find in Eclipse (using version 3.1.0 Build ID 200411050810)
are turned off. Code changes made outside of Eclipse were never ignored by
Eclipse despite your claims that Eclipse will do so.
Now, please tell me how the experiment described above differs from the one
you've asked us to repeat.