Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Drill down diagrams
Drill down diagrams [message #208561] Mon, 06 February 2006 17:38 Go to next message
Eclipse UserFriend
Originally posted by: mike.swt.demon.co.uk

Hello

I am looking to implement a drill-down editor where the figure on one
diagram represents a diagram at a lower level. When a drill-down control on
the figure is clicked, I want the current diagram to be replaced with the
diagram for the next level down.

I am very (very) new to GEF, are there any examples that illustrate this
functionality

Many thanks

Mike
Re: Drill down diagrams [message #208873 is a reply to message #208561] Thu, 09 February 2006 18:31 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
The simplest way would be to create an edit policy that responds to the
RequestConstants.REQ_OPEN request and opens another GEF editor. This
request is sent when double-clicking on a target.

@see SelectEditPartTracker#performOpen (sends the request).

Another way: (plug for GMF :) ) would be to take a look at the animated zoom
support in GMF and when responding to the request, zoom into the figure and
dynamically display the children depending on the zoom-level.

@see org.eclipse.gmf.runtime.gef.ui.internal.editparts.Animatable ZoomManager

-Steve.

"Mike Bennett" <mike@swt.demon.co.uk> wrote in message
news:ds81ij$4hf$1@utils.eclipse.org...
> Hello
>
> I am looking to implement a drill-down editor where the figure on one
> diagram represents a diagram at a lower level. When a drill-down control
on
> the figure is clicked, I want the current diagram to be replaced with the
> diagram for the next level down.
>
> I am very (very) new to GEF, are there any examples that illustrate this
> functionality
>
> Many thanks
>
> Mike
>
>
Re: Drill down diagrams [message #210974 is a reply to message #208873] Tue, 07 March 2006 17:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.swt.demon.co.uk

Thanks Steve

I like the multiple editor option. The zoom sounds very powerful, probably a
bit to sophisticated for this first project.

Cheers

Mike
"Steven Shaw" <steveshaw@ca.ibm.com> wrote in message
news:dsg1k7$bbu$1@utils.eclipse.org...
> The simplest way would be to create an edit policy that responds to the
> RequestConstants.REQ_OPEN request and opens another GEF editor. This
> request is sent when double-clicking on a target.
>
> @see SelectEditPartTracker#performOpen (sends the request).
>
> Another way: (plug for GMF :) ) would be to take a look at the animated
> zoom
> support in GMF and when responding to the request, zoom into the figure
> and
> dynamically display the children depending on the zoom-level.
>
> @see
> org.eclipse.gmf.runtime.gef.ui.internal.editparts.Animatable ZoomManager
>
> -Steve.
>
> "Mike Bennett" <mike@swt.demon.co.uk> wrote in message
> news:ds81ij$4hf$1@utils.eclipse.org...
>> Hello
>>
>> I am looking to implement a drill-down editor where the figure on one
>> diagram represents a diagram at a lower level. When a drill-down control
> on
>> the figure is clicked, I want the current diagram to be replaced with the
>> diagram for the next level down.
>>
>> I am very (very) new to GEF, are there any examples that illustrate this
>> functionality
>>
>> Many thanks
>>
>> Mike
>>
>>
>
>
Re: Drill down diagrams [message #211076 is a reply to message #210974] Wed, 08 March 2006 03:05 Go to previous message
Eclipse UserFriend
Originally posted by: harsh.ti.com

There is a simpler way to show the objects based on which one is
double-clicked on and that is to override the what GetModelChildren of the
content edit returns. You could have a policy as suggested earlier that
manipulates certain model objects to only show what is required.

Regards,
Harsh
Previous Topic:Cannot automatically snap to grid!
Next Topic:how to add an entry in palette at runtime
Goto Forum:
  


Current Time: Fri Mar 29 09:59:18 GMT 2024

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

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

Back to the top