Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to install ICompletionListener (to all TextEditors)
How to install ICompletionListener (to all TextEditors) [message #990858] Fri, 14 December 2012 14:36
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi all,

I would like to detect Quick Fix invocations, selected proposals, when the dialog is closed, etc. It looks like ICompletionListener (from org.eclipse.jface.text.contentassist) would do this trick. However, after spending about an hour on the Internet and in Eclipse source code, I could not find the way to install the ICompletionListener(s) to Eclipse workspace and/or TextEditors.

The usage shows:
QuickAssistAssistant.addCompletionListener(..), however how can I get QuickAssistAssistant?

I have access to each opened TextEditor (I am using an IPartListener2), so if someone could tell me the correct way to get QuickAssistAssistant (for the workspace if it is created only one, or from a TextEditor, if it is created per text editor), that would be great?

Additionally, could you provide the way to install ICompletionListener for content assist (possibly ContentAssistant.addCompletionListener(..), which I suppose is similar to the quick assist assistant)?

Thank you,
Previous Topic:Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno
Next Topic:How to install ICompletionListener (to all TextEditors)
Goto Forum:

Current Time: Thu Oct 22 07:54:28 GMT 2020

Powered by FUDForum. Page generated in 0.02079 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top