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 #581758] 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 #581782 is a reply to message #581758] 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 #650436 is a reply to message #581782] Mon, 24 January 2011 20:56 Go to previous messageGo to next message
Sebastian is currently offline SebastianFriend
Messages: 61
Registered: March 2010
Member
Hey Tom,

the issue remains with e4 4.1 M4a Sad

Cheers
Sebastian
Re: Printing a message to the e4 status bar [message #650441 is a reply to message #650436] Mon, 24 January 2011 21:44 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Sebastian wrote on Mon, 24 January 2011 15:56
the issue remains with e4 4.1 M4a Sad

Yes, this hasn't been implemented yet.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332499
Previous Topic:PreferenceDialog
Next Topic:License management software
Goto Forum:
  


Current Time: Thu Apr 25 15:36:17 GMT 2024

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

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

Back to the top