cannot filter problem markers by description using the severityDescription field [message #334222] |
Tue, 27 January 2009 01:00 |
Christian Rijke Messages: 2 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm implementing a filter for problem markers for a custom problems
view. As the 'problemFilter' element of the
org.eclipse.ui.ide.markerSupport extension point is deprecated, I added
a markerFieldConfiguration to my markerContentGenerator instead.
To define my filter, I subclassed FilterContributionParameters, as
required. There I found that it's not possible to filter problems by
description using the severityDescription field. Inspecting the
SeverityAndDescriptionFieldFilter class reveals that I would have to use
MarkerSupportInternalUtilies.CONTAINS_TEXT_TOKEN as a key in my filter
map, but that's not possible as it's an internal constant.
The filter works if I add a description Field to my view (the one
without the severity icon), the corresponding DescriptionFieldFilter
class then allows me to use MarkerSupportConstants.CONTAINS_KEY as a key.
The problem would be solved, if the SeverityAndDescriptionFieldFilter
would call super.initialize(values) in the initialize method, it's the
only filter class that doesn't have this call.
Is there a particular reason for this? Is it a bug or am I missing
something?
Thanks,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.03204 seconds