Is it possible to generate XML file from Shape example in GEF,Same as its getting generated in GMF? Like in GMF if we select GMF Design page and open it with XML file,it provides all external information about model figures,same like i want to generate with GEF.
Is it possible to generate XML file in gef
537 Views Asked by Eshika At
2
There are 2 best solutions below
0
execc
On
There is really no connections between the GEF and the way of persistance of it's domain model.
Here is two possible solutions: 1. If you domain model are plain java objects (POJOs) try using JAXB, and annotate them with JAXB annotations.Then use JAXB to persist them. 2. Switch to using EMF (which will provide you XML serrialization out of the box) and probably to GMF.
For just Shapes Example - there is a EMF - driven Shapes Example which will serrialize model to XMI, but that can be easily changed to XML.
Related Questions in ECLIPSE-PLUGIN
- Java Heap Space error on Layout xml: GC overhead limit exceeded
- Delay in executing action.run() method
- Eclipse - find a job
- Can't install AEM and Sling plugin in eclipse
- Eclipse PDE: Exclude test fragments from required plugins
- Eclipse is not starting
- How to run Master Server from Equinox OSGi console?
- How to share common functionality between two Eclipse plugins?
- Ecplipse XML refresh dependencies programmatically
- Is there any event to know if a view is moved below some other view?
- How to get IFile handler to an active file in Eclipse editor
- Force Re-Evaluation of Command Enablement
- Eclipse-PMD Configure ruleset globally
- Requirements eclipse update site
- How to use Timer and SwingWorker in an Eclipse Plugin?
Related Questions in ECLIPSE-EMF
- How to define a map in Xcore
- How do I programmatically add an EGeneric Type Argument to an EAttribute?
- HQL query with @JoinCoumn mapping returns object[] instead of Object
- converting properties in a list using EMF databinding does not convert values
- How to force Acceleo to iterate over a collection in the same order on every template execution?
- what is the use of Eclipse Modelling Frameowrk and Eclipse Graphical Editing Framework?
- How to write a multithreads model with emf?
- How automatically update EMF ResourceSet on file change?
- QVT transformation applied to UML (XMI) models exported from Rhapsody
- How to create a Has-A reference (containment) in ECORE that is available at runtime?
- Regarding Eclispe EMF Command Frame WorK
- How to configure server-side authentication in CDO 3.0 or above?
- Is it possible to use Java5 level annotations to generate EMF using "annotated Java"?
- Is it possible to create an EMF package from java code at runtime?
- EMF-Edit: visualizing the object referencing an object?
Related Questions in ECLIPSE-GEF
- GEF : How to programmatically create a connection?
- java.lang.NoClassDefFoundError: org/eclipse/ui/views/properties/IPropertySource
- How to relayout SWT composite container when FigureCanvas is changed?
- How to dispose of an SWT Font set on a Draw2D Label?
- what is the use of Eclipse Modelling Frameowrk and Eclipse Graphical Editing Framework?
- How drop GEF editors figures in the outside world?
- Eclipse plugin - nodes and connection + code generation
- How to achieve the screen using Graphical Editing Framework in eclipse
- How to add/edit Label name in Panel of GEF
- how to create an editable components for GEF Eclipse
- GEF : automatic scrolling during drag and drop
- Direct Edit Confirmation in GEF EditParts
- How to implement dragdetection on Slider without using dragdetect listener?
- Retrieve point of selection in Eclipse GEF
- 'Prevented recursive attempt to activate part' when clicking on a marker
Related Questions in ECLIPSE-GMF
- GEF : How to programmatically create a connection?
- Eclipse Epsilon EMF Eugenia not appearing
- Is it possible to use JUNG/Graphviz Layout-/Arrange-functions within a GEF / GMF Project?
- Is it possible to generate XML file in gef
- Graphical Modelling Framework does not work with Eclipse Indigo
- Generate graphical representation of an XMI file
- Relationship between GEF and GMF?
- Programmatically rearrange diagram
- Using GMF 2d extension classes in GEF
- How to use Xtext(M2M with Xtend) and GMF to create diagramm? (Beginner)
- restrict a project to have only one file type in eclipse
- GMF Model & Table View
- Can't generate Diagram Editor in Eclipse
- Correct way to handle copy/paste from a View into a GraphicalEditor
- How to export some controls of SWT to SVG pic?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In GMF you get automatic XML serialization since GMF is build on top EMF and GMF, using EMF as the model and GEF as the MVC framework. Editors that use GEF only must take care of serialization however they like.