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 09:39
Kivanc Muslu is currently offline Kivanc Muslu
Messages: 151
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 Jul 23 16:10:24 EDT 2014

Powered by FUDForum. Page generated in 0.01568 seconds