Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Custom Error Parser with CDT 4.0
Custom Error Parser with CDT 4.0 [message #210620] Wed, 27 February 2008 04:54 Go to next message
Eclipse UserFriend
Hello,
when i tried to get my custom error parser working for CDT 4.0x, i get a
lot of warning due to discouraged access.
E.g.
public class FujitsuErrorParser extends AbstractErrorParser
---> Discouraged access: The type AbstractErrorParser is not accessible due to
restriction on required library C:\Program
Files\eclipse\plugins\org.eclipse.cdt.core_4.0.2.20071128080 0.jar

Is there a way to avoid this warning ?


Sincerly
Patrick
Re: Custom Error Parser with CDT 4.0 [message #210628 is a reply to message #210620] Wed, 27 February 2008 06:25 Go to previous messageGo to next message
Eclipse UserFriend
i think i have to implement it trough the IErrorParser, not directly with
the AbstractErrorParser.
Re: Custom Error Parser with CDT 4.0 [message #210644 is a reply to message #210628] Wed, 27 February 2008 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kristofer.hansson.gmail.com

Hi Patric, you are correct, let it implement IErrorParser instead of
AbstractErrorParser and it will work fine.

public class UnitTestCppErrorParser implements IErrorParser ....

/Kristofer
Patrick Schmitt wrote:
> i think i have to implement it trough the IErrorParser, not directly with
> the AbstractErrorParser.
Re: Custom Error Parser with CDT 4.0 [message #210659 is a reply to message #210644] Wed, 27 February 2008 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Yes i implemented it, and all is working fine.
Only problem i have, that default enablement of this error parser is not
working in my compiler plugin.

I did it like followed:
<Tool
..
..
errorParsers="org.eclipse.cdt.f16.toolchain.tools.F16ErrorParser ">
Re: Custom Error Parser with CDT 4.0 [message #210675 is a reply to message #210644] Wed, 27 February 2008 11:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: angvoz.yahoo.com

Kristofer Hansson wrote:

> Hi Patric, you are correct, let it implement IErrorParser instead of
> AbstractErrorParser and it will work fine.

> public class UnitTestCppErrorParser implements IErrorParser ....

> /Kristofer
> Patrick Schmitt wrote:
>> i think i have to implement it trough the IErrorParser, not directly with
>> the AbstractErrorParser.

AbstractErrorParser makes it so much easier to create a new error parser,
I think it should be available and even encouraged to access for
implementers of error parsers. I think xlc error parser would benefit if
it were subclassed from it.
Re: Custom Error Parser with CDT 4.0 [message #210792 is a reply to message #210675] Thu, 28 February 2008 10:11 Go to previous message
Eclipse UserFriend
Yes it was quite easy, thx
Previous Topic:Project menu selections disabled as I move from pane to pane
Next Topic:Dependencies possible for
Goto Forum:
  


Current Time: Thu Jun 05 15:37:32 EDT 2025

Powered by FUDForum. Page generated in 0.03800 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top