Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Printing a message to the e4 status bar
Printing a message to the e4 status bar [message #558798] Tue, 14 September 2010 13:37 Go to next message
Matthias Heinrich is currently offline Matthias HeinrichFriend
Messages: 7
Registered: July 2010
Junior Member
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
Re: Printing a message to the e4 status bar [message #558805 is a reply to message #558798] Tue, 14 September 2010 13:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
It would be the correct way but I fear the Presentation Engine who is
reponsible for pushing such a service into the WindowContext is not
doing such a thing in 4.0 :-(

Tom

Am 14.09.10 15:37, schrieb Matthias Heinrich:
> 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
Re: Printing a message to the e4 status bar [message #558819 is a reply to message #558805] Tue, 14 September 2010 14:23 Go to previous messageGo to next message
Matthias Heinrich is currently offline Matthias HeinrichFriend
Messages: 7
Registered: July 2010
Junior Member
Thanks Tom for the quick answer! So, I'll just keep waiting for the sophisticated Presentation Engine... Wink

Best,
Matthias
Re: Printing a message to the e4 status bar [message #581802 is a reply to message #558805] Tue, 14 September 2010 14:23 Go to previous message
Matthias Heinrich is currently offline Matthias HeinrichFriend
Messages: 7
Registered: July 2010
Junior Member
Thanks Tom for the quick answer! So, I'll just keep waiting for the sophisticated Presentation Engine... ;)

Best,
Matthias
Previous Topic:Search at a Glance (in case not all of this is in E4 yet)
Next Topic:Swiching perspectives
Goto Forum:
  


Current Time: Thu Mar 28 22:54:07 GMT 2024

Powered by FUDForum. Page generated in 0.03268 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top