Installation location from BaseInstallHandler [message #144161] |
Tue, 14 October 2003 18:39  |
Eclipse User |
|
|
|
I am writing a custom InstallHandler (that extends BaseInstallHandler) for
a feature. In the completeInstall() method, I need to determine the
installation location for the plugins, so I can perform some operations on
the newly installed files. Is there any way to do this using the update
API?
(I used to do this using
Platform.getPlugin("org.eclipse.update.core").find(new Path("."));
and then going up a level to find the plugins directory, but this doesn't
work in general, since Eclipse extension plugins may be installed in a
separate directory)
|
|
|
|
|
Re: Installation location from BaseInstallHandler [message #144736 is a reply to message #144639] |
Wed, 15 October 2003 23:12  |
Eclipse User |
|
|
|
Originally posted by: dorian.birsan.net
"Roberto Scaramuzzi" <birdo@parasoft.com> wrote in message
news:bmkeji$6cf$1@eclipse.org...
> dorian birsan wrote:
>
> > "Roberto Scaramuzzi" <birdo@parasoft.com> wrote in message
> > news:bmhtv0$lvf$1@eclipse.org...
> > > I am writing a custom InstallHandler (that extends BaseInstallHandler)
for
> > > a feature. In the completeInstall() method, I need to determine the
> > > installation location for the plugins, so I can perform some
operations on
> > > the newly installed files. Is there any way to do this using the
update
> > > API?
>
>
> > When InstallHandler.initialize() is called keep track of the feature and
> > plugin entries objects passed to it, and when needed, just use the
> > feature.getFeatureContentProvider().getURL()
>
> > (I hope I got this right :-)
It looks like I mixed things up a bit :-)
I'd say take a look at DeltaInstallHandler, which is used to install partial
plug-ins by first installing the partial plugin and then copies the
remaining files from the old version of the plugin.
>
> > -Dorian
>
>
> I'm sorry to say feature.getFeatureContentProvider().getURL() points to
> the location of the feature on the update site, not at the newly installed
> file.
>
>
> (and IFeatureContentConsumer does not have a getURL() method.)
>
|
|
|
Powered by
FUDForum. Page generated in 1.19995 seconds