Bug 1940

Summary: (Examples) Users of InputDialog should check if the operation was canceled. (1GCSM38)
Product: [Eclipse Project] Platform Reporter: Kevin Haaland <Kevin_Haaland>
Component: UIAssignee: Kevin Haaland <Kevin_Haaland>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 Keywords: example
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Kevin Haaland CLA 2001-10-10 22:22:41 EDT
The user of InputDialog should check 
		if(dialog.getReturnValue() == dialog.CANCEL)
	and cancel the action.

	Here is a list of senders in the UI examples that are not doing it.
		createNewFile() :: StructuralChangeExample
		editPerson(Person) :: RenamePersonAction
		editPerson(Person) :: RenamePersonAction
		renameFile() :: StructuralChangeExample
		renameFirstName() :: ChangeEventExample

NOTES:

	RG (4/12/01 5:38:18 PM)
		Open returns the return value so you can do
		if (dialog.open() == dialog.CANCEL) 

	EJP (4/26/01 9:48:51 AM)
		Creating a copy of this PR.
		Moving one to Active TextEditors and other to Active examples.
Comment 1 Kevin Haaland CLA 2002-01-21 20:14:02 EST
Closing. Obsolete.