Project: SWT
Bug 158462 cleanup VerifyEvent constructor
Reported: 2006-09-23 23:28:15 | Status: resolved fixed

current code: public VerifyEvent(Event e) { super(e); this.character = e.character; this.keyCode = e.keyCode; this.stateMask = e.stateMask; this.start = e.start; this.end = e.end; this.text = e.text; } super is: public KeyEvent(Event e) { super(e); this.character = e.character; this.keyCode = e.keyCode; this.stateMask = e.stateMask; this.doit = e.doit; } if i don't mess it up the constructor of verifyevent could easyly be reduced to: public VerifyEvent(Event e) { super(e); this.start = e.start; this.end = e.end; this.text = e.text; }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/VerifyEvent.java