Information: Changing the save behaviour of your editor [message #146734] |
Thu, 16 August 2007 09:39 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.05603 seconds