Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313761

Summary: [Viewers][doc] ViewerDropAdapter.getSelectedObject impl doesn't match javadoc
Product: [Eclipse Project] Platform Reporter: Peter Kiss <peter.kiss.bugzilla>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED FIXED QA Contact: Hitesh <hsoliwal>
Severity: minor    
Priority: P3 CC: hsoliwal, peter.kiss.bugzilla
Version: 3.5.2   
Target Milestone: 3.7 M1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch V01 none

Description Peter Kiss CLA 2010-05-20 12:29:01 EDT
Build Identifier: 20100218-1602

The doc comment of ViewerDropAdapter.getSelectedObject() says that the method returns null in case multiple objects are selected. In fact, its implementation checks only whether there is AT LEAST ONE selected object.

Reproducible: Always
Comment 1 Hitesh CLA 2010-07-20 09:16:27 EDT
Created attachment 174748 [details]
Patch V01

Applied the patch to CVS HEAD.
Comment 2 Hitesh CLA 2010-07-20 09:17:10 EDT
Marking as fixed.