Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Need help for Auto-save

Hi Axel,

IEventBroker does only send out events if the model state changes. I'm current have not access to my Eclipse dev machine but I would check EditorPart for its API.

Best regards, Lars

Am 29.02.2016 5:09 nachm. schrieb "Axel RICHARD" <axel.richard@xxxxxxx>:
Hello,

About https://bugs.eclipse.org/bugs/show_bug.cgi?id=486644 (the auto-save in eclipse), I pushed a first contribution https://git.eclipse.org/r/#/c/66742/. The countdown associated to the auto-save is supposed to reset when a change occurs in the active editor.
The problem is that the SaveAllDirtyPartsAddon class has an IEventBroker that subscribes to UIEvents.Dirtyable.TOPIC_DIRTY, but this is not the right event to subscribe, because when an editor is already dirty, then a change in this editor will not send another dirty event.
I need to subscribe to any change in the (active) editor. Is anybody can help me about this ?

Thanks in advance

Best Regards,
--

Axel RICHARD
Eclipse Consultant & EMF Compare committer
+33 2 51 13 82 14

7 Boulevard Ampère - 44481 Carquefou - France
obeo.fr | twitter | linkedin


_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev

Back to the top