Eclipse Luna Problem with @Inject [message #1472084] |
Thu, 13 November 2014 10:35  |
Eclipse User |
|
|
|
Hello
I have created a new Eclipse 4 Application Project in Luna with a SamplePart:
The SamplePart has a samplePartActivated method with annotation Inject
@Inject
private void samplePartActivated(
@UIEventTopic(UIEvents.UILifeCycle.ACTIVATE) MPart activePart) {
if (activePart != null) {
System.out.println("Activation !!!!");
}
}
With Luna I have this exception:
org.eclipse.e4.core.di.InjectionException: Unable to process "SamplePart#samplePartActivated()": no actual value was found for the argument "MPart[@org.eclipse.e4.ui.di.UIEventTopic(value=org/eclipse/e4/ui/LifeCycle/activate)]".
The same code was working on juno.
Can anyone please help me?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11631 seconds