How do I add a Problem filter? [message #1066492] |
Tue, 02 July 2013 16:38  |
Eclipse User |
|
|
|
I have a "Errors/Warnings" view in my app which displays issues using resource.createMarker(). This works fine, however the view does not have the "Configure contents..." filtering options so it displays issues from all the projects instead of just the currently selected project.
How do I enable this functionality? My configuration is below:
I added the <problemFilter> part but it does nothing. I'm not sure if this is even correct!
<extension
point="org.eclipse.ui.ide.markerSupport">
<!-- I Added this --> <problemFilter name="problems" enabled="true" id="markererror.myPlugin.filterId" scope="ON_ANY_IN_SAME_CONTAINER"/>
<markerField
class="com.example.SomeClass.ValidationErrorField"
id="com.example.SomeClass.validationErrorVariable"
name="Variable">
</markerField>
[more field definitions]
<markerContentGenerator
id="com.example.validationsMarkerContentGenerator"
name="Errors and Warnings">
<markerTypeReference
id="com.example.validationerror">
</markerTypeReference>
<markerFieldReference
id="org.eclipse.ui.ide.severityAndDescriptionField"
visible="true">
</markerFieldReference>
[more field references]
</markerContentGenerator>
<extension
id="validationmarker"
point="org.eclipse.core.resources.markers">
</extension>
<extension
id="validationerror"
name="Validation Error"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<super
type="com.example.validationmarker">
</super>
<attribute
name="validationError">
</attribute>
<persistent
value="true">
</persistent>
</extension>
Where do I add the problem filter code and how do I enable it?
|
|
|
|
Powered by
FUDForum. Page generated in 0.06860 seconds