Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How do I add a Problem filter?
How do I add a Problem filter? [message #1066492] Tue, 02 July 2013 16:38 Go to next message
Eclipse UserFriend
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?
Re: How do I add a Problem filter? [message #1067080 is a reply to message #1066492] Fri, 05 July 2013 13:45 Go to previous message
Eclipse UserFriend
nobody knows how to do this? Confused

Previous Topic:Could not start bundle: org.eclipse.equinox.console
Next Topic:SavePerspectiveAction does not work in eclipse 4.2
Goto Forum:
  


Current Time: Wed Mar 26 21:36:06 EDT 2025

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

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

Back to the top