| Setting the auto expand level of the Outline [message #513517] |
Wed, 10 February 2010 08:14 |
Eric Boureau Messages: 3 Registered: July 2009 |
Junior Member |
|
|
I would like to set the auto expand level of the outline viewer to only expand the top level elements.
To achieve this I used registerSpecialToolbarActions method of my OutlinePage and put the line
@Override
protected void registerSpecialToolbarActions(IActionBars actionBars)
{
fOutlineViewer.setAutoExpandLevel(2);
...
}
I did it this way because this is the only method called between the outline viewer creation and the call to setInput.
This works fine, but I'm wondering if there is a more elegant way to do it.
If not, can you provide a way to customize this behavior ?
|
|
|
Powered by
FUDForum. Page generated in 0.01528 seconds