Bug 180773 - CTabFolder's getSelection() javadocs is incorrect
Summary: CTabFolder's getSelection() javadocs is incorrect
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 201289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-03 14:46 EDT by Remy Suen CLA
Modified: 2007-08-29 17:14 EDT (History)
2 users (show)

See Also:


Attachments
Patch to correct the javadoc wording. (965 bytes, patch)
2007-04-03 14:46 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2007-04-03 14:46:10 EDT
The current javadocs says that an empty array will be returned if nothing has been selected. In reality, the return type is a CTabItem (so returning an array is impossible to begin with), and the actual return value for a CTabFolder with no selection is null.
Comment 1 Remy Suen CLA 2007-04-03 14:46:38 EDT
Created attachment 62815 [details]
Patch to correct the javadoc wording.
Comment 2 Carolyn MacLeod CLA 2007-04-03 16:10:20 EDT
Fixed > 20070403.

Thanks, Remy. Patch applied and released to HEAD.
Comment 3 Duong Nguyen CLA 2007-08-29 16:04:22 EDT
*** Bug 201289 has been marked as a duplicate of this bug. ***
Comment 4 Eddie Galvez CLA 2007-08-29 17:14:48 EDT
thanks. FWIW, i wonder why a search for 'ctabfolder getselection' wasnt able to find this original ticket...