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] Antwort: Re: Antwort: Re: Updating slot widgets

Tania Tudorache tudorache at
Thu Oct 18 11:30:30 PDT 2007

Hi Daniel,

Sorry to hear that it did not work. I have done the test myself and it 
worked. The only difference is that I have switched the widget type, not 
used the same widget with different buttons. Protege does have indeed a 
cache of the design time widgets. You can clear it by calling 
project.clearCachedWidgets(), but I am not sure this is a good idea. It 
is probably better to stay with your solution.


daniel.goergen at wrote:
> thanks for your support Tania!
> > Yes, I forgot about this. Before calling the postFormEvent, you need to
> > call this:
> >
> > formWidget.getDescriptor().setDirectlyCustomizedByUser(true);
> >
> > where
> >
> > FormWidget formWidget = (FormWidget)
> > project.getDesignTimeClsWidget(myClass);
> this doesn´t seem to be necessary, the behaviour is the same:
> I discovered that if I simply call 
> getProject().postFormChangeEvent(getCls()); in the widget class
> when the ItemChangeListener gets called the behaviour of the ui is the 
> following:
> The first time I change the checkbox in the menu nothing happens, 
> after that the buttons
> in the slot widget change but to the state the should have been 
> changed before.
> Seems like the ui uses a cached widget that was produced when the 
> checkbox was changed the last time.
> My quick and dirty fix for this (if anybody will have the same problem):
> in the the actionPerformed method of the action attached to the 
> checkbox I simply call
> setSelected() two times to trigger the ItemChangeListener two more times.
> After that everything works like expected /O)
> *********************************************************************************
> Woermannkehre 1, 12359 Berlin, Germany
> Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRA 6501
> Vertreten durch ihre Komplementaerin:
> BIOTRONIK Mess- und Therapiegeraete GmbH
> Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRB 2918
> Geschaeftsfuehrer: Dr. Max Schaldach, Christoph Boehmer, Dr. Werner 
> Braun, Dr. Lothar Krings
> *********************************************************************************
> This email and the information it contains including attachments are 
> confidential and meant
> only for use by the intended recipient(s); disclosure or copying is 
> strictly prohibited. If you are
> not addressed, but in the possession of this email, please notify the 
> sender immediately.
> ------------------------------------------------------------------------
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at
> Instructions for unsubscribing: 

More information about the protege-discussion mailing list