[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.modeling.mdt.uml2.uml] creating new metaclasses
|
We need to create new metaclasses to use in our UML models. After
spending a long time looking in the archives for information on how to
extend the UML metamodel, we figured we should use the heavyweight
approach, because we need to generate the API for programmatically
creating models that make use of the new action metaclasses (please
correct me if this does not make sense).
In order to do that, this is the path we took:
1) created a new custom.genmodel from the custom.uml declaring the new
metaclasses that extend UML standard metaclasses
2) created a corresponding new custom.genmodel
3) generated code for the model
However, the implementation for the API generated extends the
implementation from the UML2 UML API. That is bad because the
implementation classes are not API. Should we just live with all those
"Discouraged access" warnings, or is there a cleaner way?
Thanks,
Rafael