[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: How to uninstall features and plugins from an install handler
|
It seems that the following will do the trick:
boolean success = configuredSite.unconfigure(feature);
site.remove(feature,new NullProgressMonitor());
Do you see any danger in doing it this way?
Thanks
Andrea
>
>
> "Peter Manahan" <manahan@xxxxxxxxxxxxxxxxx> wrote in message
> news:css7fq$g66$1@xxxxxxxxxxxxxxxxxx
> > Andrea Rice wrote:
> > > I am wondering if there is a way to programatically disable, or
> uninstall
> > > features and plug-ins when the install handler for a feature update
> runs?
> > > (e.g. When my feature is being installed, I want to disable some other
> > > features and plugins)
> > >
> > > I have tried deleting the associated feature and plugin folders from
the
> > > install handler, but because eclipse is running when the folders are
> > > removed, update manager gives error messages when you try to apply
> another
> > > update. It seems it is unhappy because the current configuration is
out
> of
> > > synch.
> > >
> > >
>
>