Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 434830 - [content assist] CompletionProposalPopup doesn't fire selection event when selecting proposal by mouse
Summary: [content assist] CompletionProposalPopup doesn't fire selection event when se...
Status: CLOSED DUPLICATE of bug 272284
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-14 05:32 EDT by Johannes Dorn CLA
Modified: 2014-05-14 06:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Dorn CLA 2014-05-14 05:32:33 EDT
The content assist proposals popup view, implemented in CompletionProposalPopup, fires a selection changed event via ContentAssist each time a proposal is selected by keyboard.

The path for this is

  verifyKey()
  ->selectProposal()
    ->fireSelectionEvent()
      ->fContentAssistant.fireSelectionEvent()

When selecting a proposal by clicking on it with the mouse, no selection event is fired. There is no listener for mouse events in CompletionProposalPopup.

This presents us with an issue at the Code Recommenders project (Bug 429049), since we want to react to selection changes regardless of whether proposals were selected by keyboard or mouse.
Comment 1 Dani Megert CLA 2014-05-14 06:28:51 EDT
This is just an instance of the more general bug 272284.

*** This bug has been marked as a duplicate of bug 272284 ***