Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Setting the auto expand level of the Outline
Setting the auto expand level of the Outline [message #513517] Wed, 10 February 2010 08:14
Eric Boureau is currently offline 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 ?
Previous Topic:[BUILD] S-1.0.2RC3-201002091326
Next Topic:[BUILD] I-I201002121033-201002121033
Goto Forum:
  


Current Time: Wed Apr 23 19:58:01 EDT 2014

Powered by FUDForum. Page generated in 0.01464 seconds