Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding custom problem markers to custom View
Adding custom problem markers to custom View [message #323808] Wed, 09 January 2008 04:09 Go to next message
Eclipse UserFriend
Originally posted by: cool.calm.akash.gmail.com

Hi,

I have defined a new View in plugin.xml as :-
<extension
point="org.eclipse.ui.views">
<category
id="com.example.PopUpMenu"
name="XX views"/>
<view
category="com.example.PopUpMenu"
class="com.tools.plugin.views.JavaDocProblemView"
icon="icons/sample.gif"
id="com.plugin.views.JavaDocProblemView"
name="Javadoc Problem"/>
</extension>

I have defined a new Markers as
<extension
id="docproblem"
name="Javadoc Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<super type="org.eclipse.core.resources.textmarker"/>

<persistent value="false"/>
</extension>


Since the markers extends the problemmarker they always are displayed in
the Problem View. Now i wish the markers to be defined in my XX views. Is
there any way i can achieve the same?
Thanking in advance,

Regards,

Vallabh
Re: Adding custom problem markers to custom View [message #323810 is a reply to message #323808] Wed, 09 January 2008 05:23 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Vallabh,

Wouldn't it be better to just take advantage of the existing problem
view's filtering capability? In Eclipse 3.4 it's even more configurable...

Certainly you can walk the IWorkspace tree of IResources and collect the
IMarkers associated with the resources if you want to display them
yourself too if you like...


Akash wrote:
> Hi,
>
> I have defined a new View in plugin.xml as :-
> <extension
> point="org.eclipse.ui.views">
> <category
> id="com.example.PopUpMenu"
> name="XX views"/>
> <view
> category="com.example.PopUpMenu"
> class="com.tools.plugin.views.JavaDocProblemView"
> icon="icons/sample.gif"
> id="com.plugin.views.JavaDocProblemView"
> name="Javadoc Problem"/>
> </extension>
>
> I have defined a new Markers as <extension
> id="docproblem"
> name="Javadoc Problem"
> point="org.eclipse.core.resources.markers">
> <super type="org.eclipse.core.resources.problemmarker"/>
> <super type="org.eclipse.core.resources.textmarker"/>
> <persistent value="false"/>
> </extension>
>
>
> Since the markers extends the problemmarker they always are displayed
> in the Problem View. Now i wish the markers to be defined in my XX
> views. Is there any way i can achieve the same?
> Thanking in advance,
>
> Regards,
>
> Vallabh
>
Previous Topic:how to display text and image in JFace/SWT combo box.
Next Topic:BUILD: Must be a separator on rules
Goto Forum:
  


Current Time: Wed Jul 16 20:06:15 EDT 2025

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

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

Back to the top