Hello Claudio,
the default text of the error description in the problems view is defined in the plugin.xml.
<Extension
<checker
<problem
messagePatter="MyDescription ''{1}''"
In Additon you can use place holders like ''{n}'' to display the arguments passed by the method reportProblem().
n is the index of the argument you'd like to display, starting with 1.
For Example:
messagePattern = "One, Two, ''{1}''"
method call = reportProblem(ID, ProblemLocation, "Three");
You will see the following text in the problems view description: One, Two, Three
Hope this will help you.
Regards
Kevin
>>> bianco_ <livingmox@xxxxxxxxx> 10/13/2011 1:46 >>> Hello. I'm trying to add some checkers to codan, to understand how it works i started trying to modify the GetsChecker.java that i found in the example plugin at the end of this page http://wiki.eclipse.org/CDT/designs/StaticAnalysishttp://wiki.eclipse.org/CDT/designs/StaticAnalysis But I don't understand really well how the function reportProblem() works, and how to change the message that appears on the marker corresponding to the "gets" function calls. I've checked the codan source code but I'm really having some difficulties...Someone knows where can I find some exaplanations?Or maybe could you give me a few hints/suggestions? It would be really appreciated, I really need some help Thanks a lot for reading, Regards, Claudio. -- View this message in context: http://old.nabble.com/Codan---Adding-a-simple-checker-to-codan%2C-how-to-use-markers-tp32642190p32642190.html Sent from the Eclipse CDT - Development mailing list archive at Nabble.com. _______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/cdt-dev
--------------------------------------------------------------------------------------------------------------------------
This message (including any attachments)
contains confidential information intended for a specific individual and
purpose, and is protected by law. If you are not the intended recipient,
you should delete this message. Any disclosure, copying, or distribution
of this message, or the taking of any action based on it, is strictly
prohibited.
Diese Nachricht (einschliesslich aller
Anlagen) enthaelt vertrauliche Informationen, die für einen bestimmten
Empfaenger und Zweck beabsichtigt und gesetzlich geschuetzt sind. Bitte
loeschen Sie diese Nachricht, falls Sie nicht der beabsichtigte
Empfaenger sein sollten. Die Veroeffentlichung, Vervielfaeltigung oder
Verteilung dieser Nachricht sowie die Vornahme von Handlungen aufgrund
dieser Nachricht ist strengstens untersagt
|