Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How filtering is worked in the "Problems" view?
How filtering is worked in the "Problems" view? [message #270895] Thu, 09 September 2004 14:44 Go to next message
Eclipse UserFriend
Hi,

I posted this last week, but no response. :-( How the filtering is done
in the "Problems" via configuration and probably programmatically?

I want to be able to filter my markers, choosing which ones to display,
based on certain criteria.

Greatly appreciate for any tips.

Regards,
AL
Re: How filtering is worked in the "Problems" view? [message #270934 is a reply to message #270895] Thu, 09 September 2004 17:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sxenos.__DELETEME__ca.ibm.com

If I understand correctly, you want to contribute your own programmatic
filter to the problems view. Currently, this is not possible.

However, might try the following:
- You could filter what resources are searched for markers by
contributing your own working set then selecting that working set in the
problem view filter.
- If you are trying to filter markers that were created by one of your
own plugins, you can break them up into different marker types. This
will allow users to turn on and off classes of markers at a gross level.


More advanced filtering capabilities have been proposed for Eclipse 3.1
here:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/generic-marker-view/markers.html

There has been some discussion about the 3.1 marker view here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=37974

- Stefan

AL wrote:
> Hi,
>
> I posted this last week, but no response. :-( How the filtering is done
> in the "Problems" via configuration and probably programmatically?
>
> I want to be able to filter my markers, choosing which ones to display,
> based on certain criteria.
>
> Greatly appreciate for any tips.
>
> Regards,
> AL
>
Re: How filtering is worked in the "Problems" view? [message #270965 is a reply to message #270934] Thu, 09 September 2004 20:23 Go to previous messageGo to next message
Eclipse UserFriend
Thanks, Stefan for the response. This is what I am trying to accomplish:

I have a treeviewer that has, for illustration purposes, one root
element. When I click on the root element, I want to display all the
problems into the "Problems" view, and these problems are the collection
of all the problems of the root's children. Now, if I click on one of
the children, I want to have only the problems belonging to that child
be visible in the "Problems" view.

Programmatically, I know how to do this, because I can associate an id
attribute each marker, since each child has a unique id.

BUT, how would I tell the "Problems" view, just to display a particular
child's problems WITHOUT deleting other markers, the ones belonging to
other children, that is.

I see that your suggestions go with what I am trying to do, especially
the first one. Please see my comments below. (I use Eclipse 3.0 M8.)

Stefan Xenos wrote:


> However, might try the following:
> - You could filter what resources are searched for markers by
> contributing your own working set then selecting that working set in the
> problem view filter.

How do I access the problem view filter, either programatically or via
the preference configuration?

> - If you are trying to filter markers that were created by one of your
> own plugins, you can break them up into different marker types. This
> will allow users to turn on and off classes of markers at a gross level.

This suggestion sounds good, but, it's my plugin that want to manage
which markers to show.

>
> More advanced filtering capabilities have been proposed for Eclipse 3.1
> here:
>
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/generic-marker-view/markers.html
>
>
> There has been some discussion about the 3.1 marker view here:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=37974
>
> - Stefan
>
> AL wrote:
>
>> Hi,
>>
>> I posted this last week, but no response. :-( How the filtering is
>> done in the "Problems" via configuration and probably programmatically?
>>
>> I want to be able to filter my markers, choosing which ones to
>> display, based on certain criteria.
>>
>> Greatly appreciate for any tips.
>>
>> Regards,
>> AL
>>
Re: How filtering is worked in the "Problems" view? [message #270966 is a reply to message #270934] Thu, 09 September 2004 20:26 Go to previous message
Eclipse UserFriend
Thanks, Stefan for the response. This is what I am trying to accomplish:

I have a treeviewer that has, for illustration purposes, one root
element. When I click on the root element, I want to display all the
problems into the "Problems" view, and these problems are the collection
of all the problems of the root's children. Now, if I click on one of
the children, I want to have only the problems belonging to that child
be visible in the "Problems" view.

Programmatically, I know how to do this, because I can associate an id
attribute each marker, since each child has a unique id.

BUT, how would I tell the "Problems" view, just to display a particular
child's problems WITHOUT deleting other markers, the ones belonging to
other children, that is.

I see that your suggestions go with what I am trying to do, especially
the first one. Please see my comments below. (I use Eclipse 3.0 M8.)

Stefan Xenos wrote:


> However, might try the following:
> - You could filter what resources are searched for markers by
> contributing your own working set then selecting that working set in the
> problem view filter.

How do I access the problem view filter, either programatically or via
the preference configuration?

> - If you are trying to filter markers that were created by one of your
> own plugins, you can break them up into different marker types. This
> will allow users to turn on and off classes of markers at a gross level.

This suggestion sounds good, but, it's my plugin that want to manage
which markers to show.

>
> More advanced filtering capabilities have been proposed for Eclipse 3.1
> here:
>
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/generic-marker-view/markers.html

>
>
> There has been some discussion about the 3.1 marker view here:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=37974
>
> - Stefan
>
> AL wrote:
>
>> Hi,
>>
>> I posted this last week, but no response. :-( How the filtering is
>> done in the "Problems" via configuration and probably programmatically?
>>
>> I want to be able to filter my markers, choosing which ones to
>> display, based on certain criteria.
>>
>> Greatly appreciate for any tips.
>>
>> Regards,
>> AL
>>
Previous Topic:Dynamically setting the default editor for a resource on project load?
Next Topic:Eclipse N20030912 - Creating features problem
Goto Forum:
  


Current Time: Fri Oct 24 02:48:37 EDT 2025

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

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

Back to the top