Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Information: Changing the save behaviour of your editor
Information: Changing the save behaviour of your editor [message #146734] Thu, 16 August 2007 13:39
Malte Koelling is currently offline Malte KoellingFriend
Messages: 14
Registered: July 2009
Junior Member
I had the problem, that I needed a .model file with all the default values
in it, which is normally no the case. I found a threat in this newsgroup,
but I think its wrong more or less. At least here is a way how to do it
easier and I thought that a few among you might appreciate this, because
the documentation is poor.

In the file $project_name.diagramm.part of your generated diagram plugin
is a method getSaveOptions(). Just do there anything you would like to do.
For example add:

saveOptions.put(XMLResource.OPTION_KEEP_DEFAULT_CONTENT, Boolean.TRUE);

To make sure that all attributes will be stored inside the .model file.
Previous Topic:Unique attribute value with Audit rules
Next Topic:Dynamically combining Ecore Models
Goto Forum:
  


Current Time: Wed Jan 15 08:16:00 GMT 2025

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

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

Back to the top