Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Logger and Widget Layout
Logger and Widget Layout [message #897057] Sat, 21 July 2012 09:25 Go to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

I've got a question and a problem.

The question is: I can inject Logger (org.eclipse.e4.core.services.log.Logger) and insert some message in it. But how can I read these message in other parts of my application?

The problem is about widget layout. I've got a Part with two components: a Label (org.eclipse.swt.widgets.Label) and a TreeViewer (org.eclipse.jface.viewers.TreeViewer): they have both 50% of part's space: the label result disproportionate.
How can I fix part layout?
I've tryed to use GridLayout but the viewer crosses part's bottom.

Can anyone help me?
Very thank you much for kind,
best regards.

[Updated on: Sat, 21 July 2012 09:25]

Report message to a moderator

Re: Logger and Widget Layout [message #897086 is a reply to message #897057] Sat, 21 July 2012 14:47 Go to previous messageGo to next message
Eclipse UserFriend
For the question: the logger is meant to log events somewhere, not for inter-part communications. If you want other parts to read message from other parts, check out the IEventBroker.
Re: Logger and Widget Layout [message #897144 is a reply to message #897086] Sun, 22 July 2012 13:52 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
And IIRC, Logger is an interface, and so could be replaced by an alternative logging mechanism. I believe the default logger just ties to the Eclipse platform logging facility, which is itself an implementation of the OSGi LogService.
Re: Logger and Widget Layout [message #897990 is a reply to message #897057] Wed, 25 July 2012 14:59 Go to previous messageGo to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

Thanks for replies.

For widget layout I used GridData to solve problem.

[Updated on: Wed, 25 July 2012 15:35]

Report message to a moderator

Re: Logger and Widget Layout [message #906354 is a reply to message #897990] Sat, 01 September 2012 07:50 Go to previous message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 131
Registered: March 2012
Location: Italy
Senior Member

For the Logger: I've created my own Logger.
Previous Topic:How to insert Xtext editor into my RCP
Next Topic:File Browser in a Part
Goto Forum:
  


Current Time: Tue Apr 23 15:14:54 GMT 2024

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

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

Back to the top