Actually, I just moved this to extensionsInitialized() and it seems this makes sure that my prerequisite (which is a second plugin registering something at my first plugin) is met, thus I wont need the timer (loop for waiting for that prerequisite).
If anybody thinks that's wrong though, speak up Thomas On Wed, Sep 7, 2011 at 11:32 AM, Thomas Ehrnhoefer < [email protected]> wrote: > Hi > > I have a plugin contributing a sidebar widget. It extends IPlugin, and in > the initialize method it calls > addAutoReleasedObject(new MyWidgetFactory); > > So far so good. All works well. > But now I have an additional requirement that would make that contribution > only available if certain prerequisites are given. Simply put, I will have a > loop constantly checking whether a condition is true, and if finally yes, > the sidebar widget should get contributed. > > Problem is, that when I call > addAutoReleasedObject(new MyWidgetFactory); > outside the initialize method scope, the sidebar does not show (the > "createWidget" of MyWidgetFactory never gets called). > > Is there a way to do this? > > Hope I made myself somewhat clear :) > > Thanks > Thomas > > -- > Thomas Ehrnhoefer > Software Developer, http://tasktop.com > -- Thomas Ehrnhoefer Software Developer, http://tasktop.com
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
