Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » resizing when moving
resizing when moving [message #228964] Fri, 12 January 2007 03:39 Go to next message
Sun Seng David TAN is currently offline Sun Seng David TANFriend
Messages: 12
Registered: July 2009
Junior Member
Hi everybody

Is it possible to resize a figure feedback when moving it ?
Re: resizing when moving [message #229404 is a reply to message #228964] Thu, 18 January 2007 18:47 Go to previous messageGo to next message
Nhu Le is currently offline Nhu LeFriend
Messages: 47
Registered: July 2009
Member
I think you can override
protected void showChangeBoundsFeedback(ChangeBoundsRequest request) in
NonResizableEditPolicy

and do what you want to the feedback figure.

Nhu


Sun Seng David TAN wrote:
> Hi everybody
>
> Is it possible to resize a figure feedback when moving it ?
Re: resizing when moving [message #229410 is a reply to message #229404] Fri, 19 January 2007 05:53 Go to previous message
Sun Seng David TAN is currently offline Sun Seng David TANFriend
Messages: 12
Registered: July 2009
Junior Member
Thanks, it's working very well.
At first i wast overriding public void showSourceFeedback(Request req)
and doing a cast of the Request to a ChangeBoundsRequest.
But doing from showChangeBoundsFeedback is cleaner because no cast :)

thanks again

Nhu Le wrote:
> I think you can override
> protected void showChangeBoundsFeedback(ChangeBoundsRequest request) in
> NonResizableEditPolicy
>
> and do what you want to the feedback figure.
>
> Nhu
>
>
> Sun Seng David TAN wrote:
>> Hi everybody
>>
>> Is it possible to resize a figure feedback when moving it ?
Previous Topic:Custom tool - howto?
Next Topic:Draw2d Figure Translation
Goto Forum:
  


Current Time: Thu Oct 28 18:37:06 GMT 2021

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

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

Back to the top