Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329290

Summary: Missing of the Pre-events of Move and resize
Product: [Eclipse Project] Platform Reporter: Yves YANG <yves.yang>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, eclipse.felipe, Silenio_Quarti
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Yves YANG CLA 2010-11-02 14:56:12 EDT
I have done some POCs for XWT to develop an animation UI in SWT. I met a problem to implement a n independent "Move" and "Resize" animation solution. It is in fact the missing of the pre-event of "Resize" and "Move" in SWT. As an independent solution to animate any widget, we need to know the old value and new value. With Move and Resize event, I get only the new value and the event already occurs. I expect a new event like SWT.PreMove and SWT.PreResize, they must be raised before the the actions of "resize" or "move" and the new location/size should be provided in the instance of "org.eclipse.swt.widgets.Event" such as the field x, y, width and height.
Comment 1 Felipe Heidrich CLA 2010-11-04 16:29:11 EDT
Adding support for "pre" events is not in the plan for Eclipse 3.7

If you need to remember the bounds of a control before the move/resize event why don't you save them yourself and update them after processing the event ? This way during the event you have the old values in your slot and the new values in the control.
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:38:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 3 Eclipse Genie CLA 2021-09-25 11:31:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.