Skip to main content



      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
Eclipse UserFriend
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: Sun May 18 04:40:52 EDT 2025

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

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

Back to the top