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 <phidia...@gmail.com> 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=2805988

To unsubscribe from this discussion, e-mail: 
[dev-unsubscr...@argouml.tigris.org].
To be allowed to post to the list contact the mailing list moderator, email: 
[li...@tigris.org]

Reply via email to