Skip to main content



      Home
Home » Eclipse Projects » GEF » Content outline trigger?
Content outline trigger? [message #234668] Mon, 28 May 2007 11:12 Go to next message
Eclipse UserFriend
How do I attach a content outline to my graphical viewer. I looked at
the examples and can't see what it is that triggers the showing of the
content outline view. What causes the getAdapter to be called with
IContentOutline as the adapter? Is it just the model content containing
elements that implement IPropertySource?

Regards

/Dominic
Re: Content outline trigger? [message #234697 is a reply to message #234668] Mon, 28 May 2007 16:33 Go to previous message
Eclipse UserFriend
Hi,

Take a look at the LogicEditor class there is an inner class OutlinePage -
this is the one that creates content outline for the editor. The call to
#getAdapter() on your editor for creation of outline view is triggered by
ContentOutline#doCreatePage() method.
Hope this helps.

Cheers,
Alex
Previous Topic:How to open a Dialog over the Toolbar
Next Topic:How to get IFile object from the file other then workspace
Goto Forum:
  


Current Time: Mon Jul 14 23:25:53 EDT 2025

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

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

Back to the top