[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: graphdef.editor -> Problems when generating diagram code

Hi Alex,

I downloaded the last version of the editor, but I got an assertion exception when trying to Open the "graphdef.gmfgen" file:

=====
org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:695)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:287)
=====


Can I ask you something about this graphdef editor?

I want to implement a GUI editor, and for most of the elements/widgets I want to have as properties their X and Y coordinates, Height and Width. How can I program this? As far as I understood from your response in this article (http://www.eclipse.org/newsportal/article.php?id=13363&group=eclipse.modeling.gmf#13363) the graphdef editor can be used as an example of such properties, and that's why I want to start it and see how they are implemented there. Unfortunately I couldn't understand you when you say that one should implement "domain model listener" and overwrite the "refreshBounds()" method. What is domain model listener and where is this method?

I have also tried this with "model.eSet(e, model);", but this didn't work out:
http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.modeling.gmf/msg06998.html


Greetings,
Nikolay