Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » EditPart figures in feedback layer
EditPart figures in feedback layer [message #229196] Tue, 16 January 2007 22:55 Go to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 480
Registered: July 2009
Senior Member
I am wondering about having editparts whose figures sometimes live in a
different layer. Imagine for example a visual editpart that has several
children that only want to be visible when the parent receives hover or
selection.

In the case of hover, I'd like the child figure to live in the feedback
layer so it can be managed through the standard showTargetFeedback
mechanism. In the case of selection, I'd the child could live in either
the primary layer or the handle layer.

Is that possible/advisable? Also, what is the better of making this sort
of child appear/disapper? Is it better to set the figure.isVisible flag
or have the parent edit part change what children it returns and do a
refresh?


--Cam
Re: EditPart figures in feedback layer [message #229573 is a reply to message #229196] Mon, 22 January 2007 10:42 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 480
Registered: July 2009
Senior Member
In case anyone is interested, I figured out how do this by overriding
addChildVisual in the parent edit part of those editparts for which I
wanted the figure to be a child of a graphical layer instead of a child of
the parent editpart's figure. So far it seems to be working fine.


--Cam
Previous Topic:Loop Connections
Next Topic:how to set the context menu
Goto Forum:
  


Current Time: Mon Dec 06 21:52:09 GMT 2021

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

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

Back to the top