|
Re: Undo effects outside of model changes in service calls [message #1849727 is a reply to message #1849653] |
Mon, 31 January 2022 10:14  |
Glenn Plouhinec Messages: 22 Registered: April 2020 |
Junior Member |
|
|
Hi Louis,
At first sight I don't think that updating the preferences for your use case is the right thing to do. You should use a field in the property view, I haven't had a chance to implement it, but you could use org.eclipse.ui.views.properties.PropertySheetEntry or org.eclipse.gef.ui.properties.UndoablePropertySheetEntry if you change your mind.
Concerning the Undo, we generally use org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand implementations to modify representations.
As far as I know, there is no preference page that implements the Undo functionality. The closest thing to it might be org.eclipse.jface.preference.FieldEditorPreferencePage.performDefaults() and the call to org.eclipse.jface.preference.FieldEditor.loadDefault()
I hope this helps.
Regards,
Glenn
Glenn Plouhinec - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02156 seconds