Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » RCP: Cannot inject invisible parts
RCP: Cannot inject invisible parts [message #1001849] Thu, 17 January 2013 07:53 Go to previous message
Rafael Fogel is currently offline Rafael Fogel
Messages: 20
Registered: January 2013
Junior Member
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Draggable toolbars in pure E4 application
Next Topic:Properties view (or other "standard" view) in pure eclipse e4 perspective
Goto Forum:
  


Current Time: Tue May 21 15:29:10 EDT 2013

Powered by FUDForum. Page generated in 0.01709 seconds