Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Changing a GraphicalViewers root edit part
Changing a GraphicalViewers root edit part [message #208111] Thu, 26 January 2006 12:41 Go to next message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

We have an editor which contains nested diagrams. Functionality has been
added that allows the zooming into a selected nested diagram such that
only the contents of the nested diagram are displayed within the editor.
The model remains the same, the editor simply displays different parts of
the model depending on the level of zoom. We have this working, but have
a couple of questions:

o How do we dispose of a root edit part such that the edit part and its
associated figure and its recursive children and their figures are garbage
collected?

o Because the root edit part is changed when a zoom is performed, then the
ZoomManager (as in the mechanism that performs scaling of the displayed
diagram) is still connected to the old root edit part. How do we either:

a) Notify the existing zoom manager to act on a new edit part?

b) Force the recalling of GraphicalEditor.getAdapter/1 to introduce a new
zoom manager?

Thanks.

James
Re: Changing a GraphicalViewers root edit part [message #208243 is a reply to message #208111] Mon, 30 January 2006 10:23 Go to previous message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

Bounce! No thoughts on this?

James

James Willans wrote:

> We have an editor which contains nested diagrams. Functionality has been
> added that allows the zooming into a selected nested diagram such that
> only the contents of the nested diagram are displayed within the editor.
> The model remains the same, the editor simply displays different parts of
> the model depending on the level of zoom. We have this working, but have
> a couple of questions:

> o How do we dispose of a root edit part such that the edit part and its
> associated figure and its recursive children and their figures are garbage
> collected?

> o Because the root edit part is changed when a zoom is performed, then the
> ZoomManager (as in the mechanism that performs scaling of the displayed
> diagram) is still connected to the old root edit part. How do we either:

> a) Notify the existing zoom manager to act on a new edit part?

> b) Force the recalling of GraphicalEditor.getAdapter/1 to introduce a new
> zoom manager?

> Thanks.

> James
Previous Topic:lauch my own editor from java
Next Topic:Problems with MouseListener on figures
Goto Forum:
  


Current Time: Fri Jan 17 04:50:31 GMT 2025

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

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

Back to the top