Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to start with GEF and EMF transactions(To be heading in the right direction)
How to start with GEF and EMF transactions [message #814329] Tue, 06 March 2012 10:13
nicolas h is currently offline nicolas hFriend
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
Previous Topic:Connections selection after changing z-order of layers
Next Topic:[SOLVED] GridLayout from SWT to GEF
Goto Forum:
  


Current Time: Tue Mar 19 05:32:41 GMT 2024

Powered by FUDForum. Page generated in 0.02240 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top