Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumscreate/remove handles on Enter/Exit an editPart
https://www.eclipse.org/forums/index.php/mv/msg/55133/175262/#msg_175262
Originally posted by: michel.hassenforder.uha.fr
Hello,
I am interested to put around a shape some handles as I enter in a shape
(when I exit the shape I remove the handles).
I have written some pieces of code to detect (in a policy) in the method
showTargetRequest(request) the incoming REQ_SELECTION, and I put the
different Handles (they are over the shape as suggested in an ealier
post). As I arrive over a handle it disappears (and it try to reappear
as I am still over the underlying shape).
I guess that the selection Tool has founded something (It is perhaps the
freeFormLayout I see in the debugger) which is different as the original
shape and the Tool sends a handleExitingEditPart () to the shape editPart.
My expected behaviour is to put the handle around the shape as I enter
(without any selection) and be able to click one to create a command.
thank you]]>2005-04-04T06:58:53-00:00Re: create/remove handles on Enter/Exit an editPart
https://www.eclipse.org/forums/index.php/mv/msg/55133/175347/#msg_175347
Originally posted by: none.us.ibm.com
To prevent the editpart exit, register the handles as part of the editpart
in the viewer's visualPartMap.
If this doesn't help, open a bug
"Michel Hassenforder" <michel.hassenforder@uha.fr> wrote in message
news:d2qoph$679$1@news.eclipse.org...
> Hello,
>
> I am interested to put around a shape some handles as I enter in a shape
> (when I exit the shape I remove the handles).
> I have written some pieces of code to detect (in a policy) in the method
> showTargetRequest(request) the incoming REQ_SELECTION, and I put the
> different Handles (they are over the shape as suggested in an ealier
> post). As I arrive over a handle it disappears (and it try to reappear as
> I am still over the underlying shape).
> I guess that the selection Tool has founded something (It is perhaps the
> freeFormLayout I see in the debugger) which is different as the original
> shape and the Tool sends a handleExitingEditPart () to the shape editPart.
>
> My expected behaviour is to put the handle around the shape as I enter
> (without any selection) and be able to click one to create a command.
>
> thank you]]>2005-04-04T14:42:35-00:00Re: create/remove handles on Enter/Exit an editPart
https://www.eclipse.org/forums/index.php/mv/msg/55133/175387/#msg_175387
Originally posted by: michel.hassenforder.uha.fr
thank you,
I will try this approach this night, I'll be back tomorrow
Randy Hudson a écrit :
> To prevent the editpart exit, register the handles as part of the editpart
> in the viewer's visualPartMap.
>
> If this doesn't help, open a bug
>
> "Michel Hassenforder" <michel.hassenforder@uha.fr> wrote in message
> news:d2qoph$679$1@news.eclipse.org...
>
>>Hello,
>>
>>I am interested to put around a shape some handles as I enter in a shape
>>(when I exit the shape I remove the handles).
>>I have written some pieces of code to detect (in a policy) in the method
>>showTargetRequest(request) the incoming REQ_SELECTION, and I put the
>>different Handles (they are over the shape as suggested in an ealier
>>post). As I arrive over a handle it disappears (and it try to reappear as
>>I am still over the underlying shape).
>>I guess that the selection Tool has founded something (It is perhaps the
>>freeFormLayout I see in the debugger) which is different as the original
>>shape and the Tool sends a handleExitingEditPart () to the shape editPart.
>>
>>My expected behaviour is to put the handle around the shape as I enter
>>(without any selection) and be able to click one to create a command.
>>
>>thank you
>
>
>]]>2005-04-04T16:09:46-00:00Re: create/remove handles on Enter/Exit an editPart
https://www.eclipse.org/forums/index.php/mv/msg/55133/175522/#msg_175522
Originally posted by: michel.hassenforder.uha.fr
Dear Randy,
Just two words about your suggestion: It works.
I have added in constructor of the Handle this call:
I know that I have later to unRegister() this visual but this is easy.
Just a last question… How could I found my self this information in the
documentation ?
OK, I see (yesterday) that the viewer is responsible to the hittesting,
but finding who is registered is not easy, registerVisual() is really
hidden in the editPart framework, and I never think to look at this aspect.
Really thank you for this valuable reply.
Randy Hudson a écrit :
> To prevent the editpart exit, register the handles as part of the editpart
> in the viewer's visualPartMap.
>
> If this doesn't help, open a bug
>
> "Michel Hassenforder" <michel.hassenforder@uha.fr> wrote in message
> news:d2qoph$679$1@news.eclipse.org...
>
>>Hello,
>>
>>I am interested to put around a shape some handles as I enter in a shape
>>(when I exit the shape I remove the handles).
>>I have written some pieces of code to detect (in a policy) in the method
>>showTargetRequest(request) the incoming REQ_SELECTION, and I put the
>>different Handles (they are over the shape as suggested in an ealier
>>post). As I arrive over a handle it disappears (and it try to reappear as
>>I am still over the underlying shape).
>>I guess that the selection Tool has founded something (It is perhaps the
>>freeFormLayout I see in the debugger) which is different as the original
>>shape and the Tool sends a handleExitingEditPart () to the shape editPart.
>>
>>My expected behaviour is to put the handle around the shape as I enter
>>(without any selection) and be able to click one to create a command.
>>
>>thank you
>
>
>]]>2005-04-05T07:08:00-00:00Re: create/remove handles on Enter/Exit an editPart
https://www.eclipse.org/forums/index.php/mv/msg/55133/176642/#msg_176642
Originally posted by: none.us.ibm.com
> Dear Randy,
>
> Just two words about your suggestion: It works.
>
> I have added in constructor of the Handle this call:
>
> owner.getViewer().getVisualPartMap().put(this, owner);
>
> I know that I have later to unRegister() this visual but this is easy.
>
> Just a last question]]>2005-04-11T15:17:44-00:00