|Problems generating the diagram for the mindmap example. [message #562348]
||Wed, 08 April 2009 13:24
| Toñi Reina
Registered: July 2009
I have just found the Eclipse Amalgamation Project thanks to the book
"Eclipse Modeling Project: A Domain-Specific Language (DSL) Toolkit".
I'm trying to follow the examples in the book, but sometimes they are
hard to follow. So, although the book author recommends to write the
examples from scratch, I have downloaded the examples from the Eclipse
Amalgamation Project download area, in order to fill some of the gaps
and difficulties I have found while trying to follow the examples.
Firstly, I have started with the mindmap diagram editor, so I have
generated the model code and the diagram code. While generating the
diagram code, I have had some compilation errors. They were due to the
absence of the CircleDecoration class. Guided by the book, I have
created a new package named
org.eclipse.amalgam.examples.mindmap.diagram.figures and I have included
the CircleDecoration class by copying the source code from the book.
However, when I have generated the diagram from the source code
without any compilation errors, the editor doesn`t work as it is
supposed to do. For example, I'm not allowed to create any topic,
subtopic or relationship. Although I can select the different options
from the toolbox, when I'm going to add the element to the canvas, the
element is not created.
While reading the book, there are many methods that have to be
modified, and their annotations set to @generated NOT. I was wondering
if the wrong editor behavior can be caused by the fact of not having
into account these modifications of methods.
Powered by FUDForum
. Page generated in 0.01822 seconds