Search Mailing List Archives
[protege-discussion] getInstance returns null
Tania Tudorache
tudorache at stanford.edu
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.
Tania
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 lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
>
More information about the protege-discussion
mailing list