On Mon, Jun 23, 2008 at 12:08 PM, Christian López Espínola
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was creating my custom per element property panels when the
> setTarget of the panel is called, but it was giving some problems with
> the namespace's target setting, because when I create it, the target
> is not set and I cannot call setTarget (I'd have to increase its
> visibility, and don't know yet if this will do the trick).
I'll increase the visibility of setTarget in
UMLModelElementNamespaceComboBoxModel.
Similar controls in the ArgoUML core (like
UMLModelElementVisibilityRadioButtonPanel, etc) have setTarget as a
public method.
> Michiel suggested that I should use an Element PropPanel factory, and
> I created one and registered it in the enable() method of the module:
>
> public boolean enable() {
> /* Set up the property panels for UML elements: */
> PropPanelFactory elementFactory = new XMLPropPanelFactory();
> PropPanelFactoryManager.addPropPanelFactory(elementFactory);
> return true;
> }
>
> But the createPropPanel(Object target) method at my
> XMLPropPanelFactory is never called.
>
> I'm doing anything wrong?
I have not the answer to this yet.
> --
> Cheers,
>
> Christian López Espínola <penyaskito>
>
--
Cheers,
Christian López Espínola <penyaskito>