[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: How do I activate the Quick Fix command in a context menu?

Daniel Megert wrote:

However, "Quick Fix Ctrl+1" in the SourceViewer context menu is still disabled. Where exactly does the editor framework check for the content assistant?
If you use/subclass one of the editors you get it for free, otherwise you have to create and connect an action that then invokes the corresponding operation on the source viewer.

My question is then, what is the action / handler that the editors use for quick assist? My goal is to use the exact same presentation format the IDE uses to display the results of my custom IMarkerResolutionGenerator.


And out of curiosity, where is the key binding to Ctrl-1 set?
In plugin.xml where the command is defined.

Yes, but not in my project's plugin.xml - I have looked through the plugin.xml files of the various plugins my project references, and I can't find it. If I could find this, then I could presumably find the action / handler used by the default editor, and adapt accordingly.


Thanks for patiently bearing with me,
Pepe