Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » graphiti diagram editor xmi persistence encoding (how to set xmi encoding from ascii to utf-8)
graphiti diagram editor xmi persistence encoding [message #1097784] Fri, 30 August 2013 02:44 Go to next message
xiao yu zhou is currently offline xiao yu zhou
Messages: 20
Registered: August 2013
Junior Member
i am a newbie in eclipse graphiti developing.now i used diagram editor to edit my graphitical model by emf,but when i saved it,i only got xml file with ascii encoding.i tried my best to find a way to make the utf-8 encoding while still use diagram editor,but i could not. is there a method to achieve this by some graphiti api? i really appreciate your help.


....
Re: graphiti diagram editor xmi persistence encoding [message #1097984 is a reply to message #1097784] Fri, 30 August 2013 08:35 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1587
Registered: July 2009
Location: Walldorf, Germany
Senior Member
The EMF XMLResource offers an option OPTION_ENCODING you can set for saving
in DefaultPersistencyBehavior (probably you need to subclass that).

Michael
Re: graphiti diagram editor xmi persistence encoding [message #1098383 is a reply to message #1097984] Fri, 30 August 2013 22:00 Go to previous message
xiao yu zhou is currently offline xiao yu zhou
Messages: 20
Registered: August 2013
Junior Member
Thank you Michael for your immediately help。
Previous Topic:Restrain features in the Diagram View Example
Next Topic:how to get file path created by wizard after the wizard execute
Goto Forum:
  


Current Time: Thu Aug 28 01:38:10 EDT 2014

Powered by FUDForum. Page generated in 0.24802 seconds