Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] getInstance returns null

Tania Tudorache tudorache at
Tue Oct 14 12:39:29 PDT 2008

Hi Avi,

I don't know details about your slot widget, but I would recommend that 
you don't put too much logic in the initialize method. This method is 
called at initialization time and it should only build the UI elements 
and not fill their values. But rather, you should work with the 
getValues and setValues method, which should not have the problem that 
the instance is null.  You may also override the setInstance method with 
some care.


Avi Pfeffer wrote:
> Hi,
> I am writing a slot widget.   I want to get access to other slots of
> the instance to which the slot belongs, so I am calling getInstance,
> inherited from AbstractSlotWidget.  Unfortunately, getInstance is
> returning null.  Is this expected behavior, or am I doing something
> wrong?  Is there any other way to get access to the instance to which
> the slot belongs?
> I am using Protege Frames 3.4 beta.
> Thank you,
>  Avi Pfeffer
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at
> Instructions for unsubscribing: 

More information about the protege-discussion mailing list