Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » emf tree in outline view
emf tree in outline view [message #179779] Sat, 29 March 2008 15:07 Go to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
hello,

I would like to display the emf tree in the outline view instead of the gef
tree. as the interfaces does not seem to be compatible (e.g. gef has it's
own ContentOutlinePage and it's own TreeViewer ?!), I am looking for a way
to have both - the gef-overview and the *emf*-tree-view. Has anybody
succeeded with this approach of integrating GMF and EMF? could anybody
provide some code snippets?

thanks in advance

Enrico
Re: emf tree in outline view [message #179787 is a reply to message #179779] Sat, 29 March 2008 21:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gxquarel.txin.it

Try to start with "article and example updates" you can find here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399

Ciao

Giovanni

"Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel messaggio
news:fslm0i$m4l$1@build.eclipse.org...
> hello,
>
> I would like to display the emf tree in the outline view instead of the
> gef
> tree. as the interfaces does not seem to be compatible (e.g. gef has it's
> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for a way
> to have both - the gef-overview and the *emf*-tree-view. Has anybody
> succeeded with this approach of integrating GMF and EMF? could anybody
> provide some code snippets?
>
> thanks in advance
>
> Enrico
Re: emf tree in outline view [message #179795 is a reply to message #179787] Sat, 29 March 2008 23:57 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
I know the article, but I don't want to integrate GMF into an EMF editor, I
want to use the emf outline view from the GMF editor. - it is just the
other way around.

Regards,

Enrico

Giovanni wrote:

> Try to start with "article and example updates" you can find here
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>
> Ciao
>
> Giovanni
>
> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel messaggio
> news:fslm0i$m4l$1@build.eclipse.org...
>> hello,
>>
>> I would like to display the emf tree in the outline view instead of the
>> gef
>> tree. as the interfaces does not seem to be compatible (e.g. gef has it's
>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for a
>> way to have both - the gef-overview and the *emf*-tree-view. Has anybody
>> succeeded with this approach of integrating GMF and EMF? could anybody
>> provide some code snippets?
>>
>> thanks in advance
>>
>> Enrico
Re: emf tree in outline view [message #179808 is a reply to message #179795] Sun, 30 March 2008 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gxquarel.txin.it

I used the article to customize my application so I replaced the outline
view with a separate EMF editor. In fact I used 2 editors side by side.
Ciao

Giovanni

"Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel messaggio
news:fsml1c$te8$1@build.eclipse.org...
>I know the article, but I don't want to integrate GMF into an EMF editor, I
> want to use the emf outline view from the GMF editor. - it is just the
> other way around.
>
> Regards,
>
> Enrico
>
> Giovanni wrote:
>
>> Try to start with "article and example updates" you can find here
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>>
>> Ciao
>>
>> Giovanni
>>
>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>> messaggio
>> news:fslm0i$m4l$1@build.eclipse.org...
>>> hello,
>>>
>>> I would like to display the emf tree in the outline view instead of the
>>> gef
>>> tree. as the interfaces does not seem to be compatible (e.g. gef has
>>> it's
>>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for a
>>> way to have both - the gef-overview and the *emf*-tree-view. Has anybody
>>> succeeded with this approach of integrating GMF and EMF? could anybody
>>> provide some code snippets?
>>>
>>> thanks in advance
>>>
>>> Enrico
>
Re: emf tree in outline view [message #179816 is a reply to message #179808] Sun, 30 March 2008 19:33 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Do you have the overview canvas to navigate in the graphical editor too? so
did you replaced the _complete_ outline view (including the overview) or
did you replaced the _tree_ (GEF) outline view while keeping the overview?
I am looking for a solution of the second part...

Regards

Enrico

Giovanni wrote:

> I used the article to customize my application so I replaced the outline
> view with a separate EMF editor. In fact I used 2 editors side by side.
> Ciao
>
> Giovanni
>
> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel messaggio
> news:fsml1c$te8$1@build.eclipse.org...
>>I know the article, but I don't want to integrate GMF into an EMF editor,
>>I
>> want to use the emf outline view from the GMF editor. - it is just the
>> other way around.
>>
>> Regards,
>>
>> Enrico
>>
>> Giovanni wrote:
>>
>>> Try to start with "article and example updates" you can find here
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>>>
>>> Ciao
>>>
>>> Giovanni
>>>
>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>> messaggio
>>> news:fslm0i$m4l$1@build.eclipse.org...
>>>> hello,
>>>>
>>>> I would like to display the emf tree in the outline view instead of the
>>>> gef
>>>> tree. as the interfaces does not seem to be compatible (e.g. gef has
>>>> it's
>>>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for a
>>>> way to have both - the gef-overview and the *emf*-tree-view. Has
>>>> anybody succeeded with this approach of integrating GMF and EMF? could
>>>> anybody provide some code snippets?
>>>>
>>>> thanks in advance
>>>>
>>>> Enrico
>>
Re: emf tree in outline view [message #179850 is a reply to message #179816] Mon, 31 March 2008 07:48 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
Enrico,

We provide a such model oriented outline view (showing a GEF overview
and a Tree structure editor representing the domain model) in the Ecore
Tools component
( http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew).
Currently, we need to fix a few things before providing this as
contribution to the GMF feature
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778).

I suggest you to get the current source code from the CVS repository
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.ecoretools/plugins/?root=Modeling_Project).
The org.eclipse.gmf.runtime.diagram.ui.outline plugin contains a generic
way to use this new outline type, and then, in the
org.eclipse.emf.ecoretools.diagram is defined its use for the Ecore diagram.

Regards,
Jacques

Enrico Schnepel a écrit :
> Do you have the overview canvas to navigate in the graphical editor too? so
> did you replaced the _complete_ outline view (including the overview) or
> did you replaced the _tree_ (GEF) outline view while keeping the overview?
> I am looking for a solution of the second part...
>
> Regards
>
> Enrico
>
> Giovanni wrote:
>
>> I used the article to customize my application so I replaced the outline
>> view with a separate EMF editor. In fact I used 2 editors side by side.
>> Ciao
>>
>> Giovanni
>>
>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel messaggio
>> news:fsml1c$te8$1@build.eclipse.org...
>>> I know the article, but I don't want to integrate GMF into an EMF editor,
>>> I
>>> want to use the emf outline view from the GMF editor. - it is just the
>>> other way around.
>>>
>>> Regards,
>>>
>>> Enrico
>>>
>>> Giovanni wrote:
>>>
>>>> Try to start with "article and example updates" you can find here
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>>>>
>>>> Ciao
>>>>
>>>> Giovanni
>>>>
>>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>>> messaggio
>>>> news:fslm0i$m4l$1@build.eclipse.org...
>>>>> hello,
>>>>>
>>>>> I would like to display the emf tree in the outline view instead of the
>>>>> gef
>>>>> tree. as the interfaces does not seem to be compatible (e.g. gef has
>>>>> it's
>>>>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for a
>>>>> way to have both - the gef-overview and the *emf*-tree-view. Has
>>>>> anybody succeeded with this approach of integrating GMF and EMF? could
>>>>> anybody provide some code snippets?
>>>>>
>>>>> thanks in advance
>>>>>
>>>>> Enrico
>
Re: emf tree in outline view [message #179882 is a reply to message #179850] Mon, 31 March 2008 08:41 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Jacques,

thanks for the tip. This seems to be exactly what I am looking for so I will
give it a try. I have seen, that the bug is not on the Roadmap for
EcoreTools - Do you know when the few things get fixed?

Regards,

Enrico

Jacques LESCOT wrote:
> Enrico,
>
> We provide a such model oriented outline view (showing a GEF overview
> and a Tree structure editor representing the domain model) in the Ecore
> Tools component
> ( http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew).
> Currently, we need to fix a few things before providing this as
> contribution to the GMF feature
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778).
>
> I suggest you to get the current source code from the CVS repository
>
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.ecoretools/plugins/?root=Modeling_Project).
> The org.eclipse.gmf.runtime.diagram.ui.outline plugin contains a generic
> way to use this new outline type, and then, in the
> org.eclipse.emf.ecoretools.diagram is defined its use for the Ecore
> diagram.
>
> Regards,
> Jacques
>
> Enrico Schnepel a écrit :
>> Do you have the overview canvas to navigate in the graphical editor too?
>> so did you replaced the _complete_ outline view (including the overview)
>> or did you replaced the _tree_ (GEF) outline view while keeping the
>> overview? I am looking for a solution of the second part...
>>
>> Regards
>>
>> Enrico
>>
>> Giovanni wrote:
>>
>>> I used the article to customize my application so I replaced the outline
>>> view with a separate EMF editor. In fact I used 2 editors side by side.
>>> Ciao
>>>
>>> Giovanni
>>>
>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>> messaggio news:fsml1c$te8$1@build.eclipse.org...
>>>> I know the article, but I don't want to integrate GMF into an EMF
>>>> editor, I
>>>> want to use the emf outline view from the GMF editor. - it is just the
>>>> other way around.
>>>>
>>>> Regards,
>>>>
>>>> Enrico
>>>>
>>>> Giovanni wrote:
>>>>
>>>>> Try to start with "article and example updates" you can find here
>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>>>>>
>>>>> Ciao
>>>>>
>>>>> Giovanni
>>>>>
>>>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>>>> messaggio
>>>>> news:fslm0i$m4l$1@build.eclipse.org...
>>>>>> hello,
>>>>>>
>>>>>> I would like to display the emf tree in the outline view instead of
>>>>>> the gef
>>>>>> tree. as the interfaces does not seem to be compatible (e.g. gef has
>>>>>> it's
>>>>>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for
>>>>>> a way to have both - the gef-overview and the *emf*-tree-view. Has
>>>>>> anybody succeeded with this approach of integrating GMF and EMF?
>>>>>> could anybody provide some code snippets?
>>>>>>
>>>>>> thanks in advance
>>>>>>
>>>>>> Enrico
>>
Re: emf tree in outline view [message #180003 is a reply to message #179882] Mon, 31 March 2008 20:17 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
Hi,

the bug I was refering only happens to a new editor generated thanks to
GMF capabilities. This is not reproducible in the Ecore Tools component
(we customized generated code to support multi-diagram particularly) so
I just need to fix this before contributing to GMF only if this make
sense for the GMF team.

Jacques

Enrico Schnepel a écrit :
> Hello Jacques,
>
> thanks for the tip. This seems to be exactly what I am looking for so I will
> give it a try. I have seen, that the bug is not on the Roadmap for
> EcoreTools - Do you know when the few things get fixed?
>
> Regards,
>
> Enrico
>
> Jacques LESCOT wrote:
>> Enrico,
>>
>> We provide a such model oriented outline view (showing a GEF overview
>> and a Tree structure editor representing the domain model) in the Ecore
>> Tools component
>> ( http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew).
>> Currently, we need to fix a few things before providing this as
>> contribution to the GMF feature
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778).
>>
>> I suggest you to get the current source code from the CVS repository
>>
> ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.ecoretools/plugins/?root=Modeling_Project).
>> The org.eclipse.gmf.runtime.diagram.ui.outline plugin contains a generic
>> way to use this new outline type, and then, in the
>> org.eclipse.emf.ecoretools.diagram is defined its use for the Ecore
>> diagram.
>>
>> Regards,
>> Jacques
>>
>> Enrico Schnepel a écrit :
>>> Do you have the overview canvas to navigate in the graphical editor too?
>>> so did you replaced the _complete_ outline view (including the overview)
>>> or did you replaced the _tree_ (GEF) outline view while keeping the
>>> overview? I am looking for a solution of the second part...
>>>
>>> Regards
>>>
>>> Enrico
>>>
>>> Giovanni wrote:
>>>
>>>> I used the article to customize my application so I replaced the outline
>>>> view with a separate EMF editor. In fact I used 2 editors side by side.
>>>> Ciao
>>>>
>>>> Giovanni
>>>>
>>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>>> messaggio news:fsml1c$te8$1@build.eclipse.org...
>>>>> I know the article, but I don't want to integrate GMF into an EMF
>>>>> editor, I
>>>>> want to use the emf outline view from the GMF editor. - it is just the
>>>>> other way around.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Enrico
>>>>>
>>>>> Giovanni wrote:
>>>>>
>>>>>> Try to start with "article and example updates" you can find here
>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>>>>>>
>>>>>> Ciao
>>>>>>
>>>>>> Giovanni
>>>>>>
>>>>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>>>>> messaggio
>>>>>> news:fslm0i$m4l$1@build.eclipse.org...
>>>>>>> hello,
>>>>>>>
>>>>>>> I would like to display the emf tree in the outline view instead of
>>>>>>> the gef
>>>>>>> tree. as the interfaces does not seem to be compatible (e.g. gef has
>>>>>>> it's
>>>>>>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking for
>>>>>>> a way to have both - the gef-overview and the *emf*-tree-view. Has
>>>>>>> anybody succeeded with this approach of integrating GMF and EMF?
>>>>>>> could anybody provide some code snippets?
>>>>>>>
>>>>>>> thanks in advance
>>>>>>>
>>>>>>> Enrico
>
Re: emf tree in outline view [message #180011 is a reply to message #180003] Mon, 31 March 2008 19:54 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hi again,

This would be really great.

An other way would be to create a "recipe" including modified GMF templates
ect. on how to support the emf tree outline view.

thanks for the effort anyway.

Enrico

Jacques LESCOT wrote:
> Hi,
>
> the bug I was refering only happens to a new editor generated thanks to
> GMF capabilities. This is not reproducible in the Ecore Tools component
> (we customized generated code to support multi-diagram particularly) so
> I just need to fix this before contributing to GMF only if this make
> sense for the GMF team.
>
> Jacques
>
> Enrico Schnepel a écrit :
>> Hello Jacques,
>>
>> thanks for the tip. This seems to be exactly what I am looking for so I
>> will give it a try. I have seen, that the bug is not on the Roadmap for
>> EcoreTools - Do you know when the few things get fixed?
>>
>> Regards,
>>
>> Enrico
>>
>> Jacques LESCOT wrote:
>>> Enrico,
>>>
>>> We provide a such model oriented outline view (showing a GEF overview
>>> and a Tree structure editor representing the domain model) in the Ecore
>>> Tools component
>>> ( http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew).
>>> Currently, we need to fix a few things before providing this as
>>> contribution to the GMF feature
>>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778).
>>>
>>> I suggest you to get the current source code from the CVS repository
>>>
>>
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.ecoretools/plugins/?root=Modeling_Project).
>>> The org.eclipse.gmf.runtime.diagram.ui.outline plugin contains a generic
>>> way to use this new outline type, and then, in the
>>> org.eclipse.emf.ecoretools.diagram is defined its use for the Ecore
>>> diagram.
>>>
>>> Regards,
>>> Jacques
>>>
>>> Enrico Schnepel a écrit :
>>>> Do you have the overview canvas to navigate in the graphical editor
>>>> too? so did you replaced the _complete_ outline view (including the
>>>> overview) or did you replaced the _tree_ (GEF) outline view while
>>>> keeping the overview? I am looking for a solution of the second part...
>>>>
>>>> Regards
>>>>
>>>> Enrico
>>>>
>>>> Giovanni wrote:
>>>>
>>>>> I used the article to customize my application so I replaced the
>>>>> outline view with a separate EMF editor. In fact I used 2 editors side
>>>>> by side. Ciao
>>>>>
>>>>> Giovanni
>>>>>
>>>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>>>> messaggio news:fsml1c$te8$1@build.eclipse.org...
>>>>>> I know the article, but I don't want to integrate GMF into an EMF
>>>>>> editor, I
>>>>>> want to use the emf outline view from the GMF editor. - it is just
>>>>>> the other way around.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Enrico
>>>>>>
>>>>>> Giovanni wrote:
>>>>>>
>>>>>>> Try to start with "article and example updates" you can find here
>>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399
>>>>>>>
>>>>>>> Ciao
>>>>>>>
>>>>>>> Giovanni
>>>>>>>
>>>>>>> "Enrico Schnepel" <enrico.schnepel@randomice.net> ha scritto nel
>>>>>>> messaggio
>>>>>>> news:fslm0i$m4l$1@build.eclipse.org...
>>>>>>>> hello,
>>>>>>>>
>>>>>>>> I would like to display the emf tree in the outline view instead of
>>>>>>>> the gef
>>>>>>>> tree. as the interfaces does not seem to be compatible (e.g. gef
>>>>>>>> has it's
>>>>>>>> own ContentOutlinePage and it's own TreeViewer ?!), I am looking
>>>>>>>> for a way to have both - the gef-overview and the *emf*-tree-view.
>>>>>>>> Has anybody succeeded with this approach of integrating GMF and
>>>>>>>> EMF? could anybody provide some code snippets?
>>>>>>>>
>>>>>>>> thanks in advance
>>>>>>>>
>>>>>>>> Enrico
>>
Re: emf tree in outline view [message #180033 is a reply to message #179850] Tue, 01 April 2008 08:22 Go to previous messageGo to next message
urs zeidler is currently offline urs zeidlerFriend
Messages: 91
Registered: July 2009
Member
Hi Jacques,

as I move my own plugin from the topcased diagram generation to the gmf
modeling system, just as you, I hope I could participate from your good
work. I saw in the
http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew that you
also had migrated the wizard, and support for several diagrams, also the
outline.
Can you point me to the interesting parts of your changes, so that I'm
able to reproduce your solution for my usecase.
Hopefully I got some free private time at the end of the week to take a
closer look.

greeting, urs.

> I suggest you to get the current source code from the CVS repository
> ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.ecoretools/plugins/?root=Modeling_Project).
Re: emf tree in outline view [message #180086 is a reply to message #180033] Tue, 01 April 2008 11:47 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
I suggest you to have a closer look at the source code available in the
repository and particularly in the org.eclipse.emf.ecoretools.diagram
plugin, most of the customized behavior is present in the custom-src
source folder.

Regards,
Jacques

urs zeidler a écrit :
> Hi Jacques,
>
> as I move my own plugin from the topcased diagram generation to the gmf
> modeling system, just as you, I hope I could participate from your good
> work. I saw in the
> http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew that you
> also had migrated the wizard, and support for several diagrams, also the
> outline.
> Can you point me to the interesting parts of your changes, so that I'm
> able to reproduce your solution for my usecase.
> Hopefully I got some free private time at the end of the week to take a
> closer look.
>
> greeting, urs.
>
>> I suggest you to get the current source code from the CVS repository
>> ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.ecoretools/plugins/?root=Modeling_Project).
>
Re: emf tree in outline view [message #180124 is a reply to message #180086] Tue, 01 April 2008 13:15 Go to previous message
urs zeidler is currently offline urs zeidlerFriend
Messages: 91
Registered: July 2009
Member
Jacques LESCOT schrieb:
> I suggest you to have a closer look at the source code available in the
> repository and particularly in the org.eclipse.emf.ecoretools.diagram
> plugin, most of the customized behavior is present in the custom-src
> source folder.
>
> Regards,
> Jacques
>
I will do so, thanks.
greetings urs.
Previous Topic:How to configure the loocation, name ... of a new created element with GMF
Next Topic:Usecase Diagram Editor using GMF
Goto Forum:
  


Current Time: Fri Apr 19 11:19:15 GMT 2024

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

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

Back to the top