Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313761 - [Viewers][doc] ViewerDropAdapter.getSelectedObject impl doesn't match javadoc
Summary: [Viewers][doc] ViewerDropAdapter.getSelectedObject impl doesn't match javadoc
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.2   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Hitesh CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 12:29 EDT by Peter Kiss CLA
Modified: 2010-07-20 09:17 EDT (History)
2 users (show)

See Also:


Attachments
Patch V01 (1.17 KB, patch)
2010-07-20 09:16 EDT, Hitesh CLA
no flags Details | Diff

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