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

Again, I still haven't hada  chance to dig deeper and I'm leaving any
second now.

But once again an additional comment.

I think in your createPropPanel method you should be checking
targetType and returning null if the target is not a model element.

    public PropPanel createPropPanel(Object target) {
        // Return null immediately if target is not a model element
        XmlPropertyPanel panel =
            new XmlPropertyPanel("XML Property Panel", null);
        panel.build(target);
        return panel;
    }

>From there set a debug point in the first loop of
TabProps.createPropPanel to see why it is skipping your own.

Bob.

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

Reply via email to