Auto save Editor [message #957625] |
Thu, 25 October 2012 11:16 |
Rui Domingues Messages: 194 Registered: October 2010 |
Senior Member |
|
|
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 11:17] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02374 seconds