How to add my problem entries to problemview [message #481198] |
Thu, 20 August 2009 02:37  |
Eclipse User |
|
|
|
Hi All,
In our rcp, before sending a model to the our own analyse engine, we need
to check if the model is valid. And if we find there are some problems or
errors defined by us, I want to display them in the problem view.
Does problem view support this? How to realize it?
Any comments are welcome. Thanks!!
Li
|
|
|
|
Re: How to add my problem entries to problemview [message #481206 is a reply to message #481198] |
Thu, 20 August 2009 03:01   |
Eclipse User |
|
|
|
If problmes is related with specific resource,
IResource.createMarker("org.eclipse.core.resources.problemmarker ")
creates marker, and it will be displayed on problems view.
You can use some attributes to specify problems, see constants on IMarker.
when you double click the problem in problems view, Related editor will
be opened and be requested show the problem through IGotoMarker.class
adapter. So your editor (or view) has to respond that adapter query, or
just implements that interface.
and implement IGotoMarker#gotoMarker(IMarker marker) which doing
generally sets focus and shows the problem on editor.
Li Junhong wrote:
> Hi All,
>
> In our rcp, before sending a model to the our own analyse engine, we
> need to check if the model is valid. And if we find there are some
> problems or errors defined by us, I want to display them in the problem
> view.
>
> Does problem view support this? How to realize it?
>
> Any comments are welcome. Thanks!!
>
> Li
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.17185 seconds