Re: [tasklist] compiler/JavacError

Tim Lebedkov <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Tor Norbye wrote:

>The suggestion module (or more specifically, tasklist/javaparser)
>doesn't have to parse messages because they are provided 
>directly by the java module (using the new ParserMessage class,
>org.netbeans.modules.java.ParserMessage).  
>
>Or are you thinking that the scan for symbols etc. could
>be improved by using JavacError? If so, please explain what
>you think should be done. 
>  
>
JavacError has regular expressions for all Javac messages and parameters 
for these messages so
you could write something like this:

JavacError je = new JavacError(event);
if (je.getId() == ERR_ABSTRACT_CLASS_CANNOT_BE_INSTANTIATED)
    System.out.println(je.getParams[0]); // prints the name of the 
abstract class
 
Tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.