Bug 4590 - VerifyEvent values ignored (1G7G5Y3)
Summary: VerifyEvent values ignored (1G7G5Y3)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:19 EDT by Kai-Uwe Maetzel CLA
Modified: 2002-07-08 14:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai-Uwe Maetzel CLA 2001-10-11 14:19:29 EDT
Modifications of the fields start and end of the VerifyEvent by a VerifyListener are subsequently thrown away
	by TypedListener.handleEvent:

			case SWT.Verify :
				{
					/* Fields set by Text, RichText */
					VerifyEvent event= new VerifyEvent(e);
					((VerifyListener) eventListener).verifyText(event);
					e.text= event.text;
					e.doit= event.doit;
					break;
				}

NOTES:

LK (1/12/01 11:55:52 AM)
	I was sent an email about this PR.  I assume Kai may want the ability to modify the start and end for the
	StyledText widget (I'm not sure).  But, nonetheless, this is an SWT issue.  If the platform doesn't support it,
	we're not.

SN (1/12/01 1:18:50 PM)
	The "start" and "end" fields were never intended to be modified by the application
	programmer and used by the widget.

KUM (1/15/01 11:07:04 AM)
	I can work around it. If the user is not allowed to modify those values, there should be a way to
	prevent him/her from it - otherwise it needs some time to find out what goes wrong - as it happend to me.

SN (2/5/01 3:53:13 PM)
	We need to document this.  The only fields that documented to be are read/write in SWT events are
	the doit field and the string field.  Need to check that this statement is true for OLE and D&D.
Comment 1 DJ Houghton CLA 2001-10-29 16:23:51 EST
PRODUCT VERSION:
	SWT 0.57

Comment 2 Mike Wilson CLA 2002-05-29 14:26:43 EDT
SN to provide good javadoc for all event fields during test pass 2.
Comment 3 Steve Northover CLA 2002-07-08 14:19:16 EDT
Fixed > 20020708