Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/481198/#msg_481198
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]]>Li Junhong2009-08-20T06:37:10-00:00Re: How to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/481202/#msg_481202
IResource.createMarker("org.eclipse.core.resources.problemmarker ")
creates marker, and it will be displayed on problems view.
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
>]]>Jeeeyul Lee2009-08-20T06:55:44-00:00Re: How to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/481206/#msg_481206
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
>]]>Jeeeyul Lee2009-08-20T07:01:42-00:00Re: How to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/481209/#msg_481209
But if my model is only built up in memory and the problems are not
related with specific resource? How can I do that?
Suppose I don't need to locate the problem when I double click the problem
entry.
Jiyul wrote:
> 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 Junhong2009-08-20T07:26:46-00:00Re: How to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/481438/#msg_481438
> But if my model is only built up in memory and the problems are not
> related with specific resource? How can I do that?
ProblemsView is a marker based view, and IMarker is some kind of
metadata of IResource.class. So I think, there is no way to get what you
want.
How about to make a marker which is related with IProject?
> Suppose I don't need to locate the problem when I double click the
> problem entry.
I can sure your boss and client don't think same with you. :)]]>Jeeeyul Lee2009-08-21T01:43:17-00:00Re: How to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/481439/#msg_481439
Jiyul wrote on Thu, 20 August 2009 21:43
How about to make a marker which is related with IProject?
En... Yes, I think it's a good idea to relate the marker with IProject, at least, for now, it's really a good idea!
Jiyul wrote on Thu, 20 August 2009 21:43
I can sure your boss and client don't think same with you.
Actually, that's my own idea, my boss and clients will strongly agree with you!~
Thanks for your attention and kindly help!
]]>Li Junhong2009-08-21T02:00:38-00:00Re: How to add my problem entries to problemview
https://www.eclipse.org/forums/index.php/mv/msg/152808/516115/#msg_516115
So, did you had any luck creating the markers on the actual nodes instead of the project node?