How to expand the context menu of the comparison of Eclipse?

I want to create a plugin that displays additional information about the results of an Eclipse comparison. For example, clicking the difference in Eclipse will cause additional meta information to appear in my new view of who made the changes, when it was made, what the changes are, etc. Everything is clear for me, except how to call the view from the comparison editor. I am thinking about using the context menu.

I managed to implement a context menu for a text editor. I used targetID targetID = "# TextEditorContext and action to inherit from IViewActionDelegate. But for some reason, the comparison editor does not match a regular text editor. What targetID should I use? Is this possible? Or, if someone has a better idea than context menu, share.

+3
source share
1 answer

I managed to add additional Handlers to the context menu of the comparison view using the pop-up menu identifier popup:org.eclipse.compare.CompareEditor?after=additions

+4
source

Source: https://habr.com/ru/post/1750198/


All Articles