show information in problems view [message #332117] |
Sun, 05 October 2008 17:04 |
Martin Geisse![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=mgeisse%40gmx.net) Messages: 24 Registered: July 2009 |
Junior Member |
|
|
Hello,
I am currently writing a compiler that produces error messages which are
turned to error markers and correctly show up in the problems view. I
also managed to allow the user to "Go To" the location of the marker to
fix the problem. However, the compiler produces lots of helpful
information besides the error message and location itself which I also
want to show, and I do not really know how to do that.
This additional information is available as a number of "nodes" for each
error marker. The number of nodes per marker as well as the data stored
in them is only known until runtime (i.e. when an error is detected).
Each node provides an action that opens a dialog to show the information
contained in it. I am able to access the nodes for a marker
programmatically, so the problem now is how to attach these actions to
the UI.
My idea was to have the pop-up menu of the "Problems" view show an
additional item with a submenu that displays all nodes for the selected
marker. However, I do not know how to add a submenu to the pop-up menu.
I did not find any specific information about the Problems view in this
regard, and the generic menu contribution mechanism seems to allow
submenus only for the main workbench menus as well as tool bars, but not
for pop-up menus of views.
Thanks in advance for any help.
Greetings,
Martin Geisse
|
|
|
Powered by
FUDForum. Page generated in 0.02904 seconds