Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Cannot select/move/resize EditParts directly
Cannot select/move/resize EditParts directly [message #179756] Sat, 30 April 2005 00:20 Go to next message
Eclipse UserFriend
Originally posted by: d.ozsen.blueyonder.co.uk

Hi there,

I have a problem with the selection/moving/resizing of EditParts in my
GEF editor. My EditPart and Figure structures are fairly simple, but the
main container EditPart that contains the objects I want to be able to
move around/resize/delete etc. is nested in another couple of components
which are fixed and only change in size and appearance according to some
properties in the model (and this works perfectly).

My problem is that even though I have installed my own EditPolicy for
the LAYOUT_ROLE in my container I cannot select/move/resize the
components within this container - at least not directly. It does work
when I drag a selection box from somewhere far outside the said
container into the container and enclose one or more of the container's
components in that selection box. Then they are selected, show the
expected selection handles and I can even move and resize them (showing
that my controller is listening to model changes properly and my
EditPolicy is at least doing something right) - however this only works
if I drag the selection handles, if I try to drag an object by its
centre, it does not work. Even when an object is in a selected state and
I single-click it by its centre it becomes unselected.

Does anybody have an idea as to what this could be?? I'd be grateful for
any help!

Deniz
Re: Cannot select/move/resize EditParts directly => solved [message #179764 is a reply to message #179756] Sat, 30 April 2005 00:47 Go to previous message
Eclipse UserFriend
Originally posted by: d.ozsen.blueyonder.co.uk

Sorry to have you read this long text, if anyone did...
I have just found that my suspicions were right: I have done something
very, very stupid. Basically my model was populated with a lot of
complicated data, which resulted in some transparent Figures being
created on top of the components that I wanted to move (I haven't
implemented some of the other component types properly yet). And so my
mouse clicks were intercepted by those other Figures, hence the problem
with their selection, movement etc.

D


Deniz Ozsen wrote:
> Hi there,
>
> I have a problem with the selection/moving/resizing of EditParts in my
> GEF editor. My EditPart and Figure structures are fairly simple, but the
> main container EditPart that contains the objects I want to be able to
> move around/resize/delete etc. is nested in another couple of components
> which are fixed and only change in size and appearance according to some
> properties in the model (and this works perfectly).
>
> My problem is that even though I have installed my own EditPolicy for
> the LAYOUT_ROLE in my container I cannot select/move/resize the
> components within this container - at least not directly. It does work
> when I drag a selection box from somewhere far outside the said
> container into the container and enclose one or more of the container's
> components in that selection box. Then they are selected, show the
> expected selection handles and I can even move and resize them (showing
> that my controller is listening to model changes properly and my
> EditPolicy is at least doing something right) - however this only works
> if I drag the selection handles, if I try to drag an object by its
> centre, it does not work. Even when an object is in a selected state and
> I single-click it by its centre it becomes unselected.
>
> Does anybody have an idea as to what this could be?? I'd be grateful for
> any help!
>
> Deniz
Previous Topic:Clickable in a Draw2D figure
Next Topic:Re: Changing the size of scrollbar
Goto Forum:
  


Current Time: Sun Jan 29 20:16:02 GMT 2023

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

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

Back to the top