Bugs item #1008294, was opened at 2004-08-12 16:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1008294&group_id=44253
Category: Other
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Elspeth Simpson (ejspe)
Assigned to: Nobody/Anonymous (nobody)
Summary: Save As behavior strange when modified version of file open
Initial Comment:
Recently, behavior was added so that the user could use
"Save As" to overwrite a file that was already open in
DrJava. However, this leads to strange behavior if the
file you are overwriting has been modified in DrJava.
In this case, you are promped to make sure you do in
fact want to overwrite the open file, and then you are
prompted that the file being overwritten has been
modified, and would you like to save it?
If you select that you do not want to save it, the old
modified version is overwritten by the new version, as
expected.
If you select cancel, you get 2 copies of the file side
by side, one that is the old version, and one that is
the new version. This may be the desired behavior--I'm
not sure.
But if you select that you would like to save it, any
modifications you have made are not actually
saved--your modified version is overwritten with the
version you are calling "save as" on. This seems like
a definite problem.
Perhaps a simpler way to handle this would be to only
display 1 dialogue box that reads "This file is already
open in DrJava and has been modified. Are you sure you
want to overwrite it?"
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1008294&group_id=44253
|