Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Modify indent of tree elements
Modify indent of tree elements [message #900975] Thu, 09 August 2012 09:33 Go to next message
Andre Bergmann is currently offline Andre Bergmann
Messages: 10
Registered: May 2012
Junior Member
I have a view with a TreeViewer and I want to modify the indent, which is used for every new child level.

default:
Node0
    + Node1
    + Node2

and I want to make the indent smaller:
Node0
 + Node1
 + Node2


the example is a bit exaggerated to show the difference.
How can that be done?

My application bases on Eclipse 3.6
Re: Modify indent of tree elements [message #901025 is a reply to message #900975] Thu, 09 August 2012 13:07 Go to previous messageGo to next message
Joseph Carroll is currently offline Joseph Carroll
Messages: 174
Registered: May 2012
Location: Milwaukee, WI
Senior Member

I don't know if that is going to be possible. I will take a look and see what I am able to find. This might be a setting specified by the native OS widget and thus not modifiable.

You might want to consider asking this in the JFace or SWT forums.

JD
Re: Modify indent of tree elements [message #901033 is a reply to message #901025] Thu, 09 August 2012 13:31 Go to previous messageGo to next message
Andre Bergmann is currently offline Andre Bergmann
Messages: 10
Registered: May 2012
Junior Member
Thanks for your reply. I posted it here: http://www.eclipse.org/forums/index.php/t/369251/
and will keep this thread updated or ask for a close when the topic will be resolved.
Re: Modify indent of tree elements [message #901101 is a reply to message #901033] Thu, 09 August 2012 19:31 Go to previous messageGo to next message
John Steele is currently offline John Steele
Messages: 49
Registered: January 2010
Member
I'm just curious, is this because you have some TreeItems that have an image and others that don't?
Re: Modify indent of tree elements [message #901201 is a reply to message #901101] Fri, 10 August 2012 09:44 Go to previous message
Andre Bergmann is currently offline Andre Bergmann
Messages: 10
Registered: May 2012
Junior Member
it is about a complex tree and not too much room. it does not have images.
Previous Topic:Disable lazy loading of pages
Next Topic:Programmatically add an extension to a plug-in
Goto Forum:
  


Current Time: Fri Oct 24 23:14:00 GMT 2014

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

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