On 29/04/2013 5:36 PM, Phil H wrote:
> Hi there,
> I've got 2 questions regarding the outline view.
> 1. Is it possible that the outline view is opened all the time. At the moment I've to click on every node in case to get it open.
You mean fully expanded all the time? That's more of a Jface question.
Yes it is possible to expand nodes programmatically.
> 2. I don't want to display the diagram stuff in my outline view. The following images gives you an idea what I meaning:
Sounds like more of a GMF question...
> Thanks so far
On 30/04/2013 1:58 PM, Phil H wrote:
> Hi Ed,
> can you give me a hint, which emf code is responsible for managing the
In a GMF Editor?
> Then I'm maybe ableto customize it.
All customizations of tree views is generally done by customizing the
generated item providers.
> Isn't it right that EMF provides the outline view?
EMF doesn't decide if the diagram should be in it.
> So wouldn't it be then an EMF question, cause EMF displays the gmf
> stuff also...
You should learn to use tools like http://www.eclipse.org/pde/incubator/spy/ so you can answer questions
Unfortunately I haven't resolved the expanding nodes problem yet. With the Treeviewer expandAll method, I'm able to expand all nodes on start up, but when an element is added to the diagram, the outline view collapse automatically.
But I have no clue which method is reponsible for refreshing the outline view
Have a look at
That's probably what's being used. Or they've got some other
technique to call the viewer's update method.
On 02/05/2013 1:26 AM, Phil H wrote:
> Hi Ed,
> thanks for the hint with incubator spy.
> I forgot to mention that I used this article
> to integrate EMF and GMF. As mentioned in the article it's possible to
> hide the diagram elements by using a ViewerFilter in the
> getContentOutlinePage() method, which works perfectly for me.
> Unfortunately I haven't resolved the expanding nodes problem yet. With
> the Treeviewer expandAll method, I'm able to expand all nodes on start
> up, but when an element is added to the diagram, the outline view
> collapse automatically. But I have no clue which method is reponsible
> for refreshing the outline view