RCP: Cannot inject invisible parts [message #1001849] |
Thu, 17 January 2013 07:53  |
Eclipse User |
|
|
|
I am facing a trouble that i can't understand.
Here's my problem:
I have a part stack with 2 parts:
PartStack
-> Part A
-> Part B
A and B are noted with @Creatable and @Singleton
And i have a class which manage my views like that:
public class Manager
{
@Inject private A a;
@Inject private B b;
When I make A and B visible at least one time, i can instantiate this class without problem, but when those classes were never been visible, i got the message : "no actual value was found for the argument" for the Injected classes. I figured out that this comes when the class wasn't instantiated and never got inserted on context, but even when i force the instantiation, i got the error.
I don't know if I make myself clear but I would like to know what process the framework do to insert the class on context, or if there is something i'm doing wrong.
Thanks.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03457 seconds