Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Reuse and Extend the UML2Tools Class Diagram Editor
Reuse and Extend the UML2Tools Class Diagram Editor [message #607481] Mon, 06 August 2007 10:28
Eclipse UserFriend
Originally posted by: lepton.gmx.net

Hi UML2Tools community :),

as the subject already reveals I would like to reuse the existing approach
for
UML2 class diagram modeling and I'm interested in adding new model
elements for the editor. Therefore I've created an UML2 meta model, which
defines the new model elements. The new elements are extending (
generalization ) existing UML2 meta model classes, what allows it to store
the new objects in UML2 packages.
In order to extend the UML2Tools Class Diagram Editor I've checked out the
source from the Eclipse repository. Then I've converted my meta model to
it's Ecore representation, added the necessary "Creation Tools" to the
classDiagram.gmftool, defined new "Figure Descriptors" in the
classDiagram_classifiers.gmfgraph and added for testing purposes two new
mappings for my meta elements to the classDiagram.gmfmap and changed the
"Domain model" property of the "Canvas Mapping" into my new package, which
imports the UML2 2.1.1 meta model with the help of a "Package Import"
node. Up to now everything worked fine. Now I wanted to create the
"Generator Model" from the "Mapping Model". The problem is that I'm
receiving the following validation errors:
1. Label attributes must be available in "Domain Element" EClass of labeled
mapping entry
2. "Source Feature" must be owned by the link "Domain Element" or its super
type
3. "Target Feature" must be owned by the link "Domain Element" or its super
type
These errors also occur without changing anything in the mentioned GMF
model files. Therefore I'm not sure which mapping entry is responsible for
this error.
I don't know what to do anymore to get the editor generation process
working. For me its important to have the functionality of the UML2Tools
Class Diagram Editor and the possibility to create elements from my meta
model within a class diagram. If somebody know a solution for this
problem, any help would be appreciated.

Thanks in advance and have a great day,
lepton
Previous Topic:Parameters in operations of class diagrams
Next Topic:two-way associations
Goto Forum:
  


Current Time: Sat Apr 20 03:23:20 GMT 2024

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

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

Back to the top