Re: [argouml-dev] Fetching UML2 Diagrams

Mark Fortner <[email protected]>
Newsgroups gmane.comp.db.axion.devel
Message-ID <CAOwy01vZyN_hbgz403C35Gnfo-BvF+1tXhm9gAKsGpbCjPBHmQ__36218.1955053986$1311963286$gmane$org@mail.gmail.com>
Thanks Bob,
I'll make the changes you suggest and let you know if I have any problems.

Regards,

Mark

On Fri, Jul 29, 2011 at 10:37 AM, Bob Tarling <[email protected]> wrote:

> Sorry - there's a cut and paste error in that last email
>
> The last paragraph should read
>
> Instead of looking for Fig where the class type == FigClass.class try
> looking for a Fig where Model.getFacade().isAClass(fig.getOwner()) ==
> true
>
>
>
> On 29 July 2011 18:35, Bob Tarling <[email protected]> wrote:
> > Its not a good idea to refer directly to concrete Diagram or Fig classes
> >
> > Diagrams register themselves with argouml by the DiagramType enum (you
> > may prefer to use this rather than you own defined constants). The
> > problem is that the ArgoDiagram interface has no getDiagramType()
> > method for you to use. We must get that added to the interface so that
> > you can inspect it.
> >
> > For Figs I think you could already modify your code so that its only
> > aware of the Fig class.
> >
> > Instead of looking for Fig where the class type == FigClass.class try
> > looking for a Fig where Model.getFacade().getUMLClass(fig.getOwner())
> > == true
> >
> > Regards
> >
> > Bob
> >
> >
> > On 29 July 2011 18:09, Mark Fortner <[email protected]> wrote:
> >> There was a recent bug report about ArgoPrint not being able to generate
> >> UML2 State Diagrams.  Since ArgoPrint wasn't specifically designed for
> UML2
> >> diagrams, I was wondering if there are some model-related changes that
> need
> >> to be made to the DiagramUtil class in order for it to work with UML2?
> >>  Here's a link to the code:
> >>
> http://argoprint.tigris.org/source/browse/argoprint/trunk/src/org/argoprint/util/DiagramUtil.java?revision=401&view=markup
> >>
> >> The DiagramUtil class uses a getDiagramByType method and passes it a
> >> UMLUseCaseDiagram.class Are there new diagram classes that I should be
> >> using? Is there an easy way to detect that the project contains UML2
> >> diagrams? Can a project contain both 1.4 and 2.0 classes? Is there some
> >> facade that I'm bypassing that is supposed to hide specific diagram
> >> implementations?
> >> Any pointers would be appreciated.
> >> Regards,
> >> Mark
> >
>
> ------------------------------------------------------
>
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2805989
>
> 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=2805995

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]]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.