dvdkruk / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Support integration of Graphiti and Xtext (dirty state handling) #289

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Beside the integration of Graphiti and Xtext at save it should also possible 
with dirty state editors, i.e. there are both Xtext editor and Graphiti editor 
open and changes in one editor are propagated immediately to the other editor 
without the need to persist the changes every time. 

Examples for state machine domain: 
 * the name of a state is changed in the Xtext editor: the name of the box inside the Graphiti diagram is changed as well. 
 * in the Graphiti diagram a new state is introduced: the state description is serialized in corresponding DSL syntax in the Xtext editor

Please note there might by changes that lead to intermediate invalid states, 
e.g. there might be the rule, that a state have to be connected. So a model 
cannot be serialized if there are states that are not connected. But in the 
diagram editor you have to create a state in the first step before then draw a 
connection line to another state. Such cases have to be handled in 
synchronization.

references:
 * http://www.eclipse.org/etrice/
  * http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/plain/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/concurrency/ConcurrentModificationObserver.java
  * http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/plain/plugins/org.eclipse.etrice.ui.common/src/org/eclipse/etrice/ui/common/concurrency/EditingDomainAdapter.java

Original issue reported on code.google.com by de.abg.r...@gmail.com on 21 Jul 2013 at 7:53

GoogleCodeExporter commented 8 years ago
 see also http://www.eclipse.org/forums/index.php/mv/msg/488073/1061979/#msg_1061979

Original comment by de.abg.r...@gmail.com on 21 Jul 2013 at 7:59

GoogleCodeExporter commented 8 years ago
see also solution in Sphinx (http://www.eclipse.org/sphinx/): 
http://git.eclipse.org/c/mdt/org.eclipse.sphinx.git/tree/experimental/org.eclips
e.sphinx.graphiti.workspace.ui/src/org/eclipse/sphinx/graphiti/workspace/ui/edit
ors/BasicGraphitiDiagramEditorUpdateBehavior.java

Original comment by de.abg.r...@gmail.com on 21 Jul 2013 at 8:04

GoogleCodeExporter commented 8 years ago

Original comment by de.abg.r...@gmail.com on 21 Jul 2013 at 8:16