Hello,
Good question.
They both do, in software terms, project.saveModified(), which means that
only files that have been modified since the last save are saved (there is
no point doing the others). Because of that condition the messages on the
screen can vary from save to save (whichever method is used).
Now the caveat. The above is the only thing that the keyboard shortcut
does. The menu Save does a few more things that are worth knowing about.
First of all it will make a backup of the existing XML files, which is
useful in case the save fails (e.g. because the disk is full, or the
network glitches). Secondly, it will check after the save that the files
look complete (again, in case of some problem with the save). Thirdly, it
will "touch" the project directory so that you can see when you are
opening a project when it was last saved. I think those are all the
differences between the two saves. Perhaps the shortcut save should do
all that as well.
Wayne
On Mon, 9 Jul 2012, Markus Heller wrote:
> Wayne,
>
> Since you've confirmed that the two options " call different save functions", do both of them save the same data? If not, which one should I be using to save my entire project?
>
> Thanks for clarifying!
>
> Markus
>
> -----Original Message-----
> From: CcpNmr software mailing list [mailto:[log in to unmask]] On Behalf Of Wayne Boucher
> Sent: Monday, July 09, 2012 1:04 PM
> To: [log in to unmask]
> Subject: Re: `S' vs. M:Project:Save
>
> Hello,
>
> Well, you learn something every day, I didn't even know about 'S' as a shortcut. But looking at the code, the two options you mention call different save functions, and the first indeed does not print any message at the end (and possibly it should) but the second does. In general if a save does not work then it should print an error on the screen.
>
> Wayne
>
> On Mon, 9 Jul 2012, Markus Heller wrote:
>
>>
>> Hello,
>>
>>
>>
>> Below is what the Analysis console prints after I hit `S’ and after I
>> click M:Project:Save
>>
>>
>>
>> `S’:
>>
>>
>>
>> start generating output : ccpnmr.Analysis.AnalysisProject
>>
>> start generating output : ccp.nmr.Nmr.NmrProject
>>
>> start generating output : ccp.general.Method.MethodStore
>>
>>
>>
>> M:Project:Save:
>>
>> start generating output : ccpnmr.Analysis.AnalysisProject
>>
>> start generating output : ccp.nmr.Nmr.NmrProject
>>
>> start generating output : ccp.general.DataLocation.DataLocationStore
>>
>> start generating output : ccp.general.Method.MethodStore
>>
>> successfully saved project
>>
>>
>>
>> In other words, the “successfully saved project” part is missing.
>>
>>
>>
>> Is this normal, i.e. can I trust that `S’ indeed successfully saves?
>>
>>
>>
>> Thanks
>>
>> Markus
>>
>>
>>
>> --
>>
>> Markus Heller, Ph.D.
>>
>> NMR Scientist
>>
>> CDRD - The Centre for Drug Research and Development
>>
>> 2259 Lower Mall, Third Floor | Vancouver, BC V6T 1Z4
>>
>> T: (604) 221-7750 ext. 122 | F: (604) 221-7753 | E: [log in to unmask] |
>> www.cdrd.ca
>>
>>
>>
>>
>>
>
|