How to start with GEF and EMF transactions [message #814329] |
Tue, 06 March 2012 10:13 |
nicolas h Messages: 60 Registered: February 2011 Location: Grenoble, France |
Member |
|
|
Hi,
I'm new in GEF. I followed several tutorials to build my own graphical editors with GEF and GraphicalEditorWithPalette. In all examples I found, the graphical editor is built with a DefaultEditDomain :
example (from http://www.vainolo.com/tutorials/)
public OPMGraphicalEditor() {
setEditDomain(new DefaultEditDomain(this));
}
I think DefaultEditDomain is not well suited for my needs :
1) Several graphical editors may work on the same model;
2) A model may be modified when another model is modified inside a graphical editor;
3) My model must not contain any useless information like coordinations or visual aspect. These information must be appear inside a related "view" model, like in GMF.
Is the TransactionalEditingDomain the best way to fit my needs ? How to use TransactionalEditingDomain with a GraphicalEditorWithPalette (Related tutorials about this ?)
The third point about the view model is a bit tricky for me, because I found a lot of topics about it, but not real implementation examples. Can you give me a lead please ?
Regards,
Nicolas
|
|
|
Powered by
FUDForum. Page generated in 0.02240 seconds