You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Host shares file
2. Non-host opens file
3. Non-host closes file, and is prompted to save
4. Non-host selects 'Yes'
What is the expected output? What do you see instead?
Expected: Save dialog
Getting: Nothing. File does not get saved.
Original issue reported on code.google.com by [email protected] on 13 Apr 2011 at 7:48
The text was updated successfully, but these errors were encountered:
Azfar - I'm going to assign this to you so I can get started on packaging the
plugin...
I've found it easier for the editor to prompt with a editor.doSaveAs() when
it's closing.
The problem is that those editor tabs have a default way of prompting to save
when they're being closed...
Two solutions that I found that you can explore:
(1) Override the isSaveOnCloseNeeded() method in ISaveablePart (which is a
subclass of IEditorPart, returned when the editor is opened)
Problem: I don't know how to override this method when the openEditor() call
returns an instance of IEditorPart.
(2) Do a editor.save(null) immediately when the user hits the "X" on the tab.
It will not actually save anywhere, but will prevent the default dialog from
coming up.
Problem: I could not find a listener that responds immediately when the "X" is
clicked. Only when the part is closed.
Original issue reported on code.google.com by
[email protected]
on 13 Apr 2011 at 7:48The text was updated successfully, but these errors were encountered: