Skip to main content



      Home
Home » Eclipse Projects » GEF » zoomed graphical editor: how to implement?
zoomed graphical editor: how to implement? [message #87802] Sat, 19 July 2003 02:15 Go to next message
Eclipse UserFriend
Originally posted by: wangning.db.pku.edu.cn

I just want to implement a graphical editor with GEF. In this editor,
after user double-clicks some figure, the editor change its view to
internal states of that figure.

Just like a 'package' icon in a UML tool. User see only an icon placed in
the canvas. If the user double-clicks the package icon, the editor clears
and shows classes inside such package. With an 'UP' button, the user can
change back to top view.

How to implement this? Thanks!
Re: zoomed graphical editor: how to implement? [message #87816 is a reply to message #87802] Sat, 19 July 2003 17:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Wang Ning wrote:

> How to implement this? Thanks!

You should set tho object to "go into" as new content for the whole viewer
and you need a new EditPart for this one or at least the EditPart should be
able to handle the icon state and the root state.

Cu, Gunnar
Re: zoomed graphical editor: how to implement? [message #87831 is a reply to message #87816] Sat, 19 July 2003 20:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wangning.db.pku.edu.cn

Gunnar Wagenknecht wrote:

> Wang Ning wrote:

> > How to implement this? Thanks!

> You should set tho object to "go into" as new content for the whole viewer
> and you need a new EditPart for this one or at least the EditPart should be
> able to handle the icon state and the root state.

Do yo mean that I have to program two EditParts for each figure/icon I
want to get into?

Or, how can I accomplish this in a single EditPart? To install/uninstall
EditPolicies dynamically?

Thx!

> Cu, Gunnar
Re: zoomed graphical editor: how to implement? [message #87860 is a reply to message #87831] Sun, 20 July 2003 16:05 Go to previous message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Wang Ning wrote:

> Do yo mean that I have to program two EditParts for each figure/icon I
> want to get into?

It might be easier to use different EditPart instances for each state but
these instances could be implemented into one EditPart.

> Or, how can I accomplish this in a single EditPart? To
> install/uninstall EditPolicies dynamically?

Well, it might work also using the same EditPart instance and dynamically
recreating the figure and EditPolicies. It depends on you what
implementation you prefer.

Cu, Gunnar
Previous Topic:NPE in logic
Next Topic:test
Goto Forum:
  


Current Time: Sun May 11 16:10:27 EDT 2025

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

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

Back to the top