It sounds like both Bob and I are suggesting the same approach, but having
looked at the code a bit, I don't think we've got the infrastructure in
place to support it cleanly.  The problem is that there's no way to find out
what the standard ArgoUML property panel is for a given UML model element.
I think you'll have to hardcode it.

You should be able to register your property panel using

    TabProps.addPanel(Model.getMetatypes().getPackage(), PropPanelLayer);

and then check the target to see if it has the <<layer>> stereotype applied
and if not, use the standard property panel (which you'll need to hardcode
as org.argouml.uml.ui.model_management.PropPanelPackage.PropPanelPackage
since there's no way to discover it otherwise)

I'm not sure exactly what you're trying to do with the Layer prop panel, but
you should consider having it extend PropPanelPackage so that you get all of
its inherited behavior.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to