开发者

How I can create a addition Tree Editor with GEF?

开发者 https://www.devze.com 2022-12-27 21:11 出处:网络
I have a graphical editor with GEF. It\'s possible to add objects from a palette. An Example what I mean is this:

I have a graphical editor with GEF. It's possible to add objects from a palette. An Example what I mean is this: http://java-eclipse.info/IBM.Redbooks-Eclipse.Development.using.the.Graphical.Editing.Framework.and.the.Eclipse.Modeling.Framework/7823/images/fig166_01_0.jpg So, now I want add a different possibility to display the content from the editor, in a tree view. I have found the possibility "Outline". It's work very well except for adding objects from the palette to the tree view. My goal is, that the graphical editor and the tree viewer/editor do the same things (add/delete objects, rename objects, changing propertie开发者_开发问答s from objects, ...), but show in a different way. Is there a way?

Thanks for your helping!


you could try to add a Drop listener to the treeview in the outline and to implement accordingly all the edit policies created in the tree edit parts.

0

精彩评论

暂无评论...
验证码 换一张
取 消