Inventing your own model element types is not recommended. That is the
purpose of using stereotypes as described before. Nor would I
recommend chaging our Model interfaces as your diagram will be
unusable on a standard ArgoUML build.

If you do as suggested for setting a stereotype then you can do the to
create the correct type of Fig

        if (Model.getFacade().isAActor(droppedObject)) {
            if 
(Model.getExtensionMechanismsHelper().hasStereotype(droppedObject,
"ActorL")) {
                figNode = new FigActorL(droppedObject, bounds, settings);
            } else if
(Model.getExtensionMechanismsHelper().hasStereotype(droppedObject,
"ActorT"))
                figNode = new FigActorT(droppedObject, bounds, settings);
            } else {
                figNode = new FigActor(droppedObject, bounds, settings);
            }
        } else if (Model.getFacade().isAUseCase(droppedObject)) {


2009/3/21 aminesirine <[email protected]>:
> I will add a stereotype for Actors later, but now i must assign different 
> figures (FigActor,and FigActorL) for each type of actors.
> I have created two new interfaces ActorL similar to the two Actor  interfaces 
> in packages org.eclipse.uml2.uml
> and
> org.omg.uml.behavioralelements.usecases
>
> in the declaration of the use case diagram i have added this
>
> ....
>  if (Model.getFacade().isAActorL(droppedObject)) {figNode = new 
> FigActorL(droppedObject, bounds, settings);
> ....
>
> i think the problem is in isAActorL method.
>  i have created:
>
>  public boolean isAActorL(Object handle) {
>        return handle instanceof ActorL;
>    }
>
> it doesn't return any thing,I think that ActorL is not recognized.
> any idea?
>
> ------------------------------------------------------
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=1372417
>
> 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=1372769

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]]

Reply via email to