Bug 1940 - (Examples) Users of InputDialog should check if the operation was canceled. (1GCSM38)
Summary: (Examples) Users of InputDialog should check if the operation was canceled. (...
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Haaland CLA
QA Contact:
URL:
Whiteboard:
Keywords: example
Depends on:
Blocks:
 
Reported: 2001-10-10 22:22 EDT by Kevin Haaland CLA
Modified: 2002-01-21 20:14 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.