Thanks Andreas!
By looking at the MDR implementation I concluded that there isn't a simple
access method to do what I want in MDR so MDR uses some kind of search
mechanism through the model that I don't fully understand.
After that I searched for the simple access method in uml2 and tried to find
some kind of search mechanism in the uml2/emf to either find all
ElementImports and filter them to get the ones that are connected to the
PackageableElement (brute method) or something smarter. I couldn't figure
out how this is done since I don't know enough of the uml2/emf API.
/Linus
2009/5/26 Andreas Rueckert <[email protected]>
> Hi Linus and all!
>
> -------- Original-Nachricht --------
> > Datum: Mon, 25 May 2009 21:56:01 +0200
> > Von: Linus Tolke <[email protected]>
> > An: [email protected]
> > Betreff: [argouml-dev] Attempting the improvement of the EUML model
> implementation for class diagrams
>
> > Hello!
> > I have been trying to fix something in the Class diagrams implementation
> > of
> > euml. I went for the first NotYetImplemented exception see when I started
> > to
> > work in the model and that was the getElementImports2(). Alas, I failed.
> I
> > don't know enough on how to find information on how to navigate in uml2.
>
> So what did you do? I guess your first step was to look at the MDR
> implementation of the method?
> That should give you some idea, what the method actually does in most
> cases.
> The first problem I see is the refOutermostPackage() , that the UML 2
> version of the package
> implementation lacks?
> But it has a method getNestingPackage() , that could be looped until the
> outermost package
> is reached?
>
> > Meanwhile I fixed getElementImports(), that was a lot simpler since the
> > association was navigable from Namespace to ElementImport (in conflict
> > with
> > the uml 2.2 infrastructure specification where it is not). Does this mean
> > that upgrading to 2.2 will loose the navigability? I guess not.
>
> Did you check the 2.2 implementation or just the 2.1 version? There are
> quite some cases,
> where methods in 2.1 are simply missing, while they exist in 2.2 .
>
> Ciao,
> Andreas
>
> --
> Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
> Telefonanschluss für nur 17,95 Euro/mtl.!*
> http://portal.gmx.net/de/go/dsl02
>
> ------------------------------------------------------
>
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2353662
>
> To unsubscribe from this discussion, e-mail: [
> [email protected]].
> To be allowed to post to the list contact the mailing list moderator,
> email: [[email protected]]
>
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2353675
To unsubscribe from this discussion, e-mail:
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email:
[[email protected]]