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)
icon5.gif  How to install ICompletionListener (to all TextEditors) [message #990859] Fri, 14 December 2012 14:39
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:How to install ICompletionListener (to all TextEditors)
Next Topic:TableViewer terribly inefficient when loading a lot of data
Goto Forum:

Current Time: Wed Oct 21 00:09:42 GMT 2020

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

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

Back to the top