[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Eclipse ViewPart and OSGI Declarative Services problem
- From: Paul Webster <pwebster@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Nov 2010 07:00:56 -0400
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=F2viO4yHINUyR+kIVOViCHsZMppItO0pIPIGium+OcYd1fgZdu/KznJT2w1SxhV7/H K2eo+k2TSD5czeZ3ofpkRMxNh6pBoFfXzt/ARLgOPnCC+1fPIE/ILXhKiuHG6ZkCbHSH FivhILx8cXzLYGqmeZBI/HPuMqPvEJ9xgTqak=
On Mon, Nov 1, 2010 at 5:17 PM, Richard Catlin
> I have a ViewPart which depends on an OSGI Declarative Service.
> I have it configured properly so that the service is injected into the
> ViewPart via a bind method.Â I can debug and see that this is working.
> The problem I am having is that a new instance of the ViewPart is being
> instantiated for viewing and that the instance that was injected is not
> being used.
When a view is instantiated (for example, when it is shown for the
first time in the session) it is created by
AFAIK there's no hook from there that allow anything to be injected
into it, at least not in 3.x
Hi floor.Â Make me a sammich! - GIR