Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:38 Go to next message
Kevin Bloomberg is currently offline Kevin BloombergFriend
Messages: 2
Registered: June 2013
Junior Member
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 17:45 Go to previous message
Kevin Bloomberg is currently offline Kevin BloombergFriend
Messages: 2
Registered: June 2013
Junior Member
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: Thu Apr 25 00:22:19 GMT 2024

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

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

Back to the top