[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Notification after install or update
|
Thanks you for all ideas. Yesterday I had the same idea as pascal and
shortly implement a oberserver for bundle change. My unlucky accident
is that the API is not completely implementet.
Below is my posting to eclipse.platform newsgroup. I would create a bug to
find out, how long to wait for implementation. But I do not know, is that
the right way? So I would try to use the custom install handler!
Hello,
is that kidding? I need to now when a update or install vi Updatemanager
is finish. But can't find any way. So I try to listen for Bundle change
into the OSGI part of the platform.
What I do is register with help of PlatformAdmin a StateChangeListener!
I'am happy it is done. Now I start my application and what I see. It was
thrown a
UnsupportedOperationException() from ReadOnlyState class.
:( HM - Shit happends
Now my question!
Would these class implemented in future. How long take that.
Any suggestion for a way around?
Thanks in advance
Alexander Schneider
Pascal Rapicault wrote:
> You need to register a BundleListener and see the value of the
> BundleEvents (see as well bundleContext which is the object against
> which you can register such listeners)
> PaScaL
> dorian birsan wrote:
> > "Schneider Alexander" <schneideralexander@xxxxxxxxxxxxx> wrote in message
> > news:ck0ud0$3n6$1@xxxxxxxxxxxxxx
> >
> >>Hello,
> >>
> >>I would run a special service after install or update plugins via
> >>Updatemanager. Know's anybody a posibility to recieve a notification after
> >>install or update of plugins.
> >
> >
> > If these are your plugins, you can write a custom install handler that will
> > be invoked by the update manager at various points during install/update.
> > Check the org.eclipse.update.core.IInstallHandler interface (or do a search
> > for custom install handler in the online help)
> >
> > If you want to be notified on *any* plugin, then you will have to hook into
> > the osgi notifications. Check the equinox newsgroup archive, there should
be
> > some "how to" posting.
> >
> > -dorian
> >
> >
> >>thanks
> >>
> >>alexander schneider
> >>
> >
> >
> >