I am developing a CDT plug-in for Eclipse IDE. I want my own warning to appear in the Problems view.
Furthermore, my warning message is very important and must be seen by user, but Problems view may be even not shown, so I show a message box.
How can I add my warning to the Problems view and what is the preferred way to deal with warnings that must be seen in Eclipse IDE?
preferred way to deal with warnings that must be seen in Eclipse IDE?
Make them errors instead of warnings.
Then, when the next state in the workflow needs the output of the problematic code, that is when it is appropriate to do a pop-up. When you are coding and making changes, it is perfectly normal to have "temporary" errors/warning in your code. Pop-ups at that time would be very inconvenient. But when I proceed to launch my code or similar then I want to be warned off.
Consider the case of doing a Java launch. If there are errors in the code there is a pop-up like this: