Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » tree layout
tree layout [message #33148] Tue, 29 August 2006 14:20 Go to next message
Eclipse UserFriend
I'm exploring GMF for an upcoming project.

We would like to be able to drop palette items into a tree based editor.
Any samples or tutorials that show how you might have a graphical tree view
based editor derived from the generated diagram code that you get from gmf?
Anyone gone this route in their own development?

thank you
Re: tree layout [message #34521 is a reply to message #33148] Wed, 30 August 2006 11:07 Go to previous messageGo to next message
Eclipse UserFriend
I was exploring changing my editors base view from a
ScrollingGraphicalViewer to a TreeViewer inside my generated editor code by
overriding CreateGraphicalViewer, but it seems alot of work to replumb this
and it doesn't appear the code is setup to handle changing the graphical
view out of the editor.

There are a number of references in the generated code that assume it is
dealing with the expected DiagramGraphicalViewer which derives from
ScrollingGraphicalViewer as well as a number of places the view is cast to
this class.

public class DiagramGraphicalViewer
extends ScrollingGraphicalViewer.

Is this not the way to go? Is there a way to take the generated code and
mimic a tree view within my editor or should I abandon the generated code
and roll my own editor?



"Neil Goldsmith" <neilg@avaya.com> wrote in message
news:ed20dj$9eu$1@utils.eclipse.org...
> I'm exploring GMF for an upcoming project.
>
> We would like to be able to drop palette items into a tree based editor.
> Any samples or tutorials that show how you might have a graphical tree
> view based editor derived from the generated diagram code that you get
> from gmf? Anyone gone this route in their own development?
>
> thank you
>
Re: tree layout [message #36650 is a reply to message #34521] Fri, 01 September 2006 08:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

If you need emf model editor that represents your model as a tree why
don't you use the one generated by emf.edit from genmodel? It's not that
hard to write palette for it )))

Neil Goldsmith wrote:
> I was exploring changing my editors base view from a
> ScrollingGraphicalViewer to a TreeViewer inside my generated editor code by
> overriding CreateGraphicalViewer, but it seems alot of work to replumb this
> and it doesn't appear the code is setup to handle changing the graphical
> view out of the editor.
>
> There are a number of references in the generated code that assume it is
> dealing with the expected DiagramGraphicalViewer which derives from
> ScrollingGraphicalViewer as well as a number of places the view is cast to
> this class.
>
> public class DiagramGraphicalViewer
> extends ScrollingGraphicalViewer.
>
> Is this not the way to go? Is there a way to take the generated code and
> mimic a tree view within my editor or should I abandon the generated code
> and roll my own editor?
>
>
>
> "Neil Goldsmith" <neilg@avaya.com> wrote in message
> news:ed20dj$9eu$1@utils.eclipse.org...
>> I'm exploring GMF for an upcoming project.
>>
>> We would like to be able to drop palette items into a tree based editor.
>> Any samples or tutorials that show how you might have a graphical tree
>> view based editor derived from the generated diagram code that you get
>> from gmf? Anyone gone this route in their own development?
>>
>> thank you
>>
>
>
Re: tree layout [message #51576 is a reply to message #33148] Tue, 19 September 2006 19:59 Go to previous message
Eclipse UserFriend
Neil Goldsmith wrote:
> I'm exploring GMF for an upcoming project.
>
> We would like to be able to drop palette items into a tree based editor.
> Any samples or tutorials that show how you might have a graphical tree view
> based editor derived from the generated diagram code that you get from gmf?
> Anyone gone this route in their own development?
>
> thank you
>
>

Neil, if you are interested in a tree viewer for your domain model you
can always get one for "free" from the EMF Project.

Here's a link to a tutorial:
http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org .eclipse.emf/doc/org.eclipse.emf.doc/tutorials/clibmod/clibm od.html

If you need further assistance just let me know.

Regards,
Angel Roman

MDE Systems
www.mdesystems.com
Previous Topic:dynamic additions to editors: Simplest Thing That Could Possibly Work
Next Topic:style properties not accepted
Goto Forum:
  


Current Time: Tue Jul 08 20:20:43 EDT 2025

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

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

Back to the top