Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Customizing Outline View
Customizing Outline View [message #1052082] Mon, 29 April 2013 11:36 Go to next message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
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.

2. I don't want to display the diagram stuff in my outline view. The following images gives you an idea what I meaning:

index.php/fa/14562/0/

Thanks so far
Re: Customizing Outline View [message #1052154 is a reply to message #1052082] Mon, 29 April 2013 14:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25910
Registered: July 2009
Senior Member
Comments below.

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
Re: Customizing Outline View [message #1052683 is a reply to message #1052154] Tue, 30 April 2013 07:58 Go to previous messageGo to next message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
Hi Ed,

can you give me a hint, which emf code is responsible for managing the outline?
Then I'm maybe ableto customize it.

Isn't it right that EMF provides the outline view? So wouldn't it be then an EMF question, cause EMF displays the gmf stuff also...
Re: Customizing Outline View [message #1052687 is a reply to message #1052683] Tue, 30 April 2013 08:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25910
Registered: July 2009
Senior Member
Phil,


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
> outline?
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
yourself.
Re: Customizing Outline View [message #1053014 is a reply to message #1052687] Wed, 01 May 2013 19:26 Go to previous messageGo to next message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
Hi Ed,

thanks for the hint with incubator spy.

I forgot to mention that I used this article (http://www.eclipse.org/articles/article.php?file=Article-Integrating-EMF-GMF-Editors/index.html) 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
Re: Customizing Outline View [message #1053038 is a reply to message #1053014] Thu, 02 May 2013 03:31 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25910
Registered: July 2009
Senior Member
Have a look at
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider.ViewerRefresh.refresh(IViewerNotification).
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
> (http://www.eclipse.org/articles/article.php?file=Article-Integrating-EMF-GMF-Editors/index.html)
> 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
Previous Topic:Initialize EMF node with default name
Next Topic:Resolving proxy URIs with a customized URI schema
Goto Forum:
  


Current Time: Tue Jul 22 13:42:59 EDT 2014

Powered by FUDForum. Page generated in 0.01794 seconds