|
Re: Parser messages in problems view [message #501090 is a reply to message #498363] |
Mon, 30 November 2009 22:47 |
Robert M. Fuhrer Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Hi there,
[Somehow Thunderbird didn't show me this message, even though I've been
checking the newsgroup every so often... sorry!]
Zoltán Ujhelyi wrote:
> I try to create a text editor with IMP, and generally I like the system.
>
> My most serious problem with it is that the error messages of the parser
> appear only as annotations together with the source, but not in the
> problems view.
Generally, the messages found in the Problems view are created by an
incremental builder. Basically, they're just markers (cf. annotations)
placed on workspace resources (usually files).
To see how that's done, look at the method createMarker() on the class
BuilderBase.
Technically, there's nothing preventing your parser (or IMessageHandler
implementation) from doing that, but you have to be careful to delete
old markers before adding new ones when you re-parse.
Hope that helps...
> I looked at the "Editor annotation creator" wizard as it seems to be
> doing what I need, but it uses an undefined extension point, so it
> doesn't work.
>
> I didn't find any obvious way to create these markers in a programmatic
> way as I couldn't get any reference
>
> Can you help me how to create the specific markers needed for Problems
> view?
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
|
|
|
|
|
|
Re: Parser messages in problems view [message #576879 is a reply to message #498363] |
Mon, 30 November 2009 22:47 |
Robert M. Fuhrer Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Hi there,
[Somehow Thunderbird didn't show me this message, even though I've been
checking the newsgroup every so often... sorry!]
Zoltán Ujhelyi wrote:
> I try to create a text editor with IMP, and generally I like the system.
>
> My most serious problem with it is that the error messages of the parser
> appear only as annotations together with the source, but not in the
> problems view.
Generally, the messages found in the Problems view are created by an
incremental builder. Basically, they're just markers (cf. annotations)
placed on workspace resources (usually files).
To see how that's done, look at the method createMarker() on the class
BuilderBase.
Technically, there's nothing preventing your parser (or IMessageHandler
implementation) from doing that, but you have to be careful to delete
old markers before adding new ones when you re-parse.
Hope that helps...
> I looked at the "Editor annotation creator" wizard as it seems to be
> doing what I need, but it uses an undefined extension point, so it
> doesn't work.
>
> I didn't find any obvious way to create these markers in a programmatic
> way as I couldn't get any reference
>
> Can you help me how to create the specific markers needed for Problems
> view?
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03055 seconds