Auto save Editor [message #957625] |
Thu, 25 October 2012 07:16  |
Eclipse User |
|
|
|
Usually in my gmf editors I was able to save the editors when some change happened in the editor.
Usually I used
OperationHistoryFactory.getOperationHistory().addOperationHistoryListener(new IOperationHistoryListener() {
public void historyNotification(OperationHistoryEvent event) {
//save current editor Or editor itself
doSave(new NullProgressMonitor());
}
}
In this case, The dirty state was never shown, the usability aspect was smooth, with no popups, no refreshing issues (trembling.. etc)
I was trying to do the same in graphiti, and it works, however the usability aspect is impared, once it shows two progress dialog for a fraction of second, even using Nullprogressmonitor.
Am I missing something? I would like that the user doesn't notice anything whenever editor is being saved, or at least that the character (*-dirty) doesn't appear in the tab.
Thanks in advance
Rui Domingues
[Updated on: Thu, 25 October 2012 07:17] by Moderator
|
|
|
|
|
|
Re: Auto save Editor [message #1053490 is a reply to message #1052855] |
Mon, 06 May 2013 04:59  |
Eclipse User |
|
|
|
Marek,
I would suspect a timing issue as there is no guarantee in which sequence
listeners are called. It might happen that the diagram editor dirty state is
updated before your your save is done. Have you tried to add firing prop
dirty event after the save?
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04088 seconds