Printing a message to the e4 status bar [message #558798] |
Tue, 14 September 2010 09:37  |
Eclipse User |
|
|
|
Hi,
I am trying to print some message to the status bar of my e4 application. But I am not quite sure how to implement this in the e4.
I tried the following:
I injected the IStatusLineManager
@Inject
IStatusLineManager statusLine;
And within my e4 Part I call
statusLine.setMessage("Print to Status Bar");
However, I just get the following InjectionException:
ERROR: Unable to create class 'com.sap.tm.ui.parts.LocationDetailPart' from bundle '197'
org.eclipse.e4.core.di.InjectionException: Unable to process "LocationDetailPart.statusLine": no actual value was found for the argument "IStatusLineManager".
at org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolve dArgument(InjectorImpl.java:354)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequesto rArgs(InjectorImpl.java:343)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(Injector Impl.java:93)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(In jectorImpl.java:292)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorIm pl.java:219)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(Co ntextInjectionFactory.java:152)
...
Is injecting the IStatusLineManager the way to go or should I model the status bar in my *.e4xmi application model?
Thanks,
Matthias
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05104 seconds