Home » Eclipse Projects » Eclipse Platform » Marker Problem (noone responding)
|
Re: Marker Problem (noone responding) [message #286299 is a reply to message #286291] |
Mon, 06 June 2005 22:26 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: tyeung.bea.com
How exactly does you marker definitely look like in plug-in.xml? Below is
one of my markers definition which have sucessfully resulted in a red
squiggle and an entry in the problem pane. The marker is posted to the
resource in the way described below.
Also, problem marker entries can be filtered out in the problem pane. Make
sure that your marker is checked. As to why there are no squiggles, i do not
understand.
<extension id="MyProblemMarker" name="MyProblemMarker"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<persistent value="false"/>
Hope this is helpful.
Theodora Yeung
BEA Systems, Inc.
"Prashant Deva" <prashant.deva@gmail.com> wrote in message
news:d82gkl$stg$2@news.eclipse.org...
> Ok, i have seen questions for this problem many times in this newsgroup
> and other forums but this just doesn't seem to get answered.
> Now i seem to be having the same problem and i am stuck.
>
> You create markers the normal way by putting an extension point in ur
> plugin.xml and inheriting from org.eclipse.core.resources.problemmarker
> and you create your marker using call to createMarker with and then set
> all the attributes. all this inside a wrokspace runnable.
> But the thing is the marker *still* doesn't appear.
>
> Strangely enough if i create just a
> org.eclipse.core.resources.problemmarker, then it displays perfectly fine
> in the problems view and in the editor.
>
> But then why isn't my custom marker showing up?
>
> I have seen people asking about this problem many times, but their
> questions don't seem to be answered here.
>
> Pls, if this is *not* the way markers should be created , then it should
> be said so somehwere, and that article on eclispe.org 'Mark my words'
> needs to be either removed or updated.
>
> I do hope that someone will read this and care to reply.
> It is bloody frustating to do a thing exactly as its written and then
> finding it not to work.
>
> PRASHANT
|
|
|
Re: Marker Problem (noone responding) [message #286303 is a reply to message #286299] |
Mon, 06 June 2005 22:50 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Prashant Deva![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=prashant.deva%40gmail.com) Messages: 32 Registered: July 2009 |
Member |
|
|
Mine is pretty much like urs -
<extension
id="my.marker.id"
name="mf Problem"
point="org.eclipse.core.resources.markers">
<super type = "org.eclipse.core.resources.problemmarker"/>
</extension>
I have even specified an image provider for it-
<extension point="org.eclipse.ui.ide.markerImageProviders">
<imageprovider
markertype="my.marker.id"
icon="icons/icon_name.gif"
id="my.markerImages.idname">
</imageprovider>
</extension>
PRASHANT
Theodora Yeung wrote:
> How exactly does you marker definitely look like in plug-in.xml? Below is
> one of my markers definition which have sucessfully resulted in a red
> squiggle and an entry in the problem pane. The marker is posted to the
> resource in the way described below.
> Also, problem marker entries can be filtered out in the problem pane. Make
> sure that your marker is checked. As to why there are no squiggles, i do not
> understand.
>
> <extension id="MyProblemMarker" name="MyProblemMarker"
> point="org.eclipse.core.resources.markers">
> <super type="org.eclipse.core.resources.problemmarker"/>
> <persistent value="false"/>
>
> Hope this is helpful.
>
> Theodora Yeung
> BEA Systems, Inc.
>
>
>
> "Prashant Deva" <prashant.deva@gmail.com> wrote in message
> news:d82gkl$stg$2@news.eclipse.org...
>
>>Ok, i have seen questions for this problem many times in this newsgroup
>>and other forums but this just doesn't seem to get answered.
>>Now i seem to be having the same problem and i am stuck.
>>
>>You create markers the normal way by putting an extension point in ur
>>plugin.xml and inheriting from org.eclipse.core.resources.problemmarker
>>and you create your marker using call to createMarker with and then set
>>all the attributes. all this inside a wrokspace runnable.
>>But the thing is the marker *still* doesn't appear.
>>
>>Strangely enough if i create just a
>>org.eclipse.core.resources.problemmarker, then it displays perfectly fine
>>in the problems view and in the editor.
>>
>>But then why isn't my custom marker showing up?
>>
>>I have seen people asking about this problem many times, but their
>>questions don't seem to be answered here.
>>
>>Pls, if this is *not* the way markers should be created , then it should
>>be said so somehwere, and that article on eclispe.org 'Mark my words'
>>needs to be either removed or updated.
>>
>>I do hope that someone will read this and care to reply.
>>It is bloody frustating to do a thing exactly as its written and then
>>finding it not to work.
>>
>>PRASHANT
>
>
>
|
|
|
Re: Marker Problem (noone responding) [message #286304 is a reply to message #286303] |
Mon, 06 June 2005 22:51 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Prashant Deva![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=prashant.deva%40gmail.com) Messages: 32 Registered: July 2009 |
Member |
|
|
Also btw, i am creating this in response to a documentChnaged event.
Does that have any effect?
PRASHANT
Prashant Deva wrote:
> Mine is pretty much like urs -
>
> <extension
> id="my.marker.id"
> name="mf Problem"
> point="org.eclipse.core.resources.markers">
> <super type = "org.eclipse.core.resources.problemmarker"/>
> </extension>
>
> I have even specified an image provider for it-
>
> <extension point="org.eclipse.ui.ide.markerImageProviders">
> <imageprovider
> markertype="my.marker.id"
> icon="icons/icon_name.gif"
> id="my.markerImages.idname">
> </imageprovider>
> </extension>
>
>
> PRASHANT
> Theodora Yeung wrote:
>
>> How exactly does you marker definitely look like in plug-in.xml?
>> Below is one of my markers definition which have sucessfully resulted
>> in a red squiggle and an entry in the problem pane. The marker is
>> posted to the resource in the way described below.
>> Also, problem marker entries can be filtered out in the problem pane.
>> Make sure that your marker is checked. As to why there are no
>> squiggles, i do not understand.
>>
>> <extension id="MyProblemMarker" name="MyProblemMarker"
>> point="org.eclipse.core.resources.markers">
>> <super type="org.eclipse.core.resources.problemmarker"/>
>> <persistent value="false"/>
>>
>> Hope this is helpful.
>>
>> Theodora Yeung
>> BEA Systems, Inc.
>>
>>
>>
>> "Prashant Deva" <prashant.deva@gmail.com> wrote in message
>> news:d82gkl$stg$2@news.eclipse.org...
>>
>>> Ok, i have seen questions for this problem many times in this
>>> newsgroup and other forums but this just doesn't seem to get answered.
>>> Now i seem to be having the same problem and i am stuck.
>>>
>>> You create markers the normal way by putting an extension point in ur
>>> plugin.xml and inheriting from org.eclipse.core.resources.problemmarker
>>> and you create your marker using call to createMarker with and then
>>> set all the attributes. all this inside a wrokspace runnable.
>>> But the thing is the marker *still* doesn't appear.
>>>
>>> Strangely enough if i create just a
>>> org.eclipse.core.resources.problemmarker, then it displays perfectly
>>> fine in the problems view and in the editor.
>>>
>>> But then why isn't my custom marker showing up?
>>>
>>> I have seen people asking about this problem many times, but their
>>> questions don't seem to be answered here.
>>>
>>> Pls, if this is *not* the way markers should be created , then it
>>> should be said so somehwere, and that article on eclispe.org 'Mark my
>>> words' needs to be either removed or updated.
>>>
>>> I do hope that someone will read this and care to reply.
>>> It is bloody frustating to do a thing exactly as its written and then
>>> finding it not to work.
>>>
>>> PRASHANT
>>
>>
>>
>>
|
|
|
Re: Marker Problem (noone responding) [message #286305 is a reply to message #286303] |
Mon, 06 June 2005 22:52 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Prashant Deva![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=prashant.deva%40gmail.com) Messages: 32 Registered: July 2009 |
Member |
|
|
And my markers are *not* filtered out.
PRASHANT
Prashant Deva wrote:
> Mine is pretty much like urs -
>
> <extension
> id="my.marker.id"
> name="mf Problem"
> point="org.eclipse.core.resources.markers">
> <super type = "org.eclipse.core.resources.problemmarker"/>
> </extension>
>
> I have even specified an image provider for it-
>
> <extension point="org.eclipse.ui.ide.markerImageProviders">
> <imageprovider
> markertype="my.marker.id"
> icon="icons/icon_name.gif"
> id="my.markerImages.idname">
> </imageprovider>
> </extension>
>
>
> PRASHANT
> Theodora Yeung wrote:
>
>> How exactly does you marker definitely look like in plug-in.xml?
>> Below is one of my markers definition which have sucessfully resulted
>> in a red squiggle and an entry in the problem pane. The marker is
>> posted to the resource in the way described below.
>> Also, problem marker entries can be filtered out in the problem pane.
>> Make sure that your marker is checked. As to why there are no
>> squiggles, i do not understand.
>>
>> <extension id="MyProblemMarker" name="MyProblemMarker"
>> point="org.eclipse.core.resources.markers">
>> <super type="org.eclipse.core.resources.problemmarker"/>
>> <persistent value="false"/>
>>
>> Hope this is helpful.
>>
>> Theodora Yeung
>> BEA Systems, Inc.
>>
>>
>>
>> "Prashant Deva" <prashant.deva@gmail.com> wrote in message
>> news:d82gkl$stg$2@news.eclipse.org...
>>
>>> Ok, i have seen questions for this problem many times in this
>>> newsgroup and other forums but this just doesn't seem to get answered.
>>> Now i seem to be having the same problem and i am stuck.
>>>
>>> You create markers the normal way by putting an extension point in ur
>>> plugin.xml and inheriting from org.eclipse.core.resources.problemmarker
>>> and you create your marker using call to createMarker with and then
>>> set all the attributes. all this inside a wrokspace runnable.
>>> But the thing is the marker *still* doesn't appear.
>>>
>>> Strangely enough if i create just a
>>> org.eclipse.core.resources.problemmarker, then it displays perfectly
>>> fine in the problems view and in the editor.
>>>
>>> But then why isn't my custom marker showing up?
>>>
>>> I have seen people asking about this problem many times, but their
>>> questions don't seem to be answered here.
>>>
>>> Pls, if this is *not* the way markers should be created , then it
>>> should be said so somehwere, and that article on eclispe.org 'Mark my
>>> words' needs to be either removed or updated.
>>>
>>> I do hope that someone will read this and care to reply.
>>> It is bloody frustating to do a thing exactly as its written and then
>>> finding it not to work.
>>>
>>> PRASHANT
>>
>>
>>
>>
|
|
|
Re: Marker Problem (noone responding) [message #286318 is a reply to message #286305] |
Tue, 07 June 2005 09:40 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.megert.gmx.net
Try to create the marker using MarkerUtilities. If this isn't working
please file a bug report against Platform Text, if possible with an example.
Dani
Prashant Deva wrote:
> And my markers are *not* filtered out.
>
> PRASHANT
>
> Prashant Deva wrote:
>
>> Mine is pretty much like urs -
>>
>> <extension
>> id="my.marker.id"
>> name="mf Problem"
>> point="org.eclipse.core.resources.markers">
>> <super type = "org.eclipse.core.resources.problemmarker"/>
>> </extension>
>>
>> I have even specified an image provider for it-
>>
>> <extension point="org.eclipse.ui.ide.markerImageProviders">
>> <imageprovider
>> markertype="my.marker.id"
>> icon="icons/icon_name.gif"
>> id="my.markerImages.idname">
>> </imageprovider>
>> </extension>
>>
>>
>> PRASHANT
>> Theodora Yeung wrote:
>>
>>> How exactly does you marker definitely look like in plug-in.xml?
>>> Below is one of my markers definition which have sucessfully
>>> resulted in a red squiggle and an entry in the problem pane. The
>>> marker is posted to the resource in the way described below.
>>> Also, problem marker entries can be filtered out in the problem
>>> pane. Make sure that your marker is checked. As to why there are no
>>> squiggles, i do not understand.
>>>
>>> <extension id="MyProblemMarker" name="MyProblemMarker"
>>> point="org.eclipse.core.resources.markers">
>>> <super type="org.eclipse.core.resources.problemmarker"/>
>>> <persistent value="false"/>
>>>
>>> Hope this is helpful.
>>>
>>> Theodora Yeung
>>> BEA Systems, Inc.
>>>
>>>
>>>
>>> "Prashant Deva" <prashant.deva@gmail.com> wrote in message
>>> news:d82gkl$stg$2@news.eclipse.org...
>>>
>>>> Ok, i have seen questions for this problem many times in this
>>>> newsgroup and other forums but this just doesn't seem to get answered.
>>>> Now i seem to be having the same problem and i am stuck.
>>>>
>>>> You create markers the normal way by putting an extension point in
>>>> ur plugin.xml and inheriting from
>>>> org.eclipse.core.resources.problemmarker
>>>> and you create your marker using call to createMarker with and then
>>>> set all the attributes. all this inside a wrokspace runnable.
>>>> But the thing is the marker *still* doesn't appear.
>>>>
>>>> Strangely enough if i create just a
>>>> org.eclipse.core.resources.problemmarker, then it displays
>>>> perfectly fine in the problems view and in the editor.
>>>>
>>>> But then why isn't my custom marker showing up?
>>>>
>>>> I have seen people asking about this problem many times, but their
>>>> questions don't seem to be answered here.
>>>>
>>>> Pls, if this is *not* the way markers should be created , then it
>>>> should be said so somehwere, and that article on eclispe.org 'Mark
>>>> my words' needs to be either removed or updated.
>>>>
>>>> I do hope that someone will read this and care to reply.
>>>> It is bloody frustating to do a thing exactly as its written and
>>>> then finding it not to work.
>>>>
>>>> PRASHANT
>>>
>>>
>>>
>>>
>>>
|
|
|
Re: Marker Problem (noone responding) [message #286381 is a reply to message #286299] |
Wed, 08 June 2005 08:22 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: lyjr.ifrance.com
Theodora Yeung wrote:
> Also, problem marker entries can be filtered out in the problem pane. Make
> sure that your marker is checked. As to why there are no squiggles, i do not
> understand.
Anyone knows how to set the filter programmaticaly ? Or with the
plugin.xml file ?
Thanks,
--
Jean-Remy LACHARNAY
|
|
|
Re: Marker Problem (noone responding) [message #286391 is a reply to message #286318] |
Wed, 08 June 2005 11:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Prashant Deva![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=prashant.deva%40gmail.com) Messages: 32 Registered: July 2009 |
Member |
|
|
Daniel Megert wrote:
> Try to create the marker using MarkerUtilities. If this isn't working
> please file a bug report against Platform Text, if possible with an
> example.
>
> Dani
>
> Prashant Deva wrote:
>
>> And my markers are *not* filtered out.
>>
>> PRASHANT
>>
>> Prashant Deva wrote:
>>
>>> Mine is pretty much like urs -
>>>
>>> <extension
>>> id="my.marker.id"
>>> name="mf Problem"
>>> point="org.eclipse.core.resources.markers">
>>> <super type = "org.eclipse.core.resources.problemmarker"/>
>>> </extension>
>>>
>>> I have even specified an image provider for it-
>>>
>>> <extension point="org.eclipse.ui.ide.markerImageProviders">
>>> <imageprovider
>>> markertype="my.marker.id"
>>> icon="icons/icon_name.gif"
>>> id="my.markerImages.idname">
>>> </imageprovider>
>>> </extension>
>>>
>>>
>>> PRASHANT
>>> Theodora Yeung wrote:
>>>
>>>> How exactly does you marker definitely look like in plug-in.xml?
>>>> Below is one of my markers definition which have sucessfully
>>>> resulted in a red squiggle and an entry in the problem pane. The
>>>> marker is posted to the resource in the way described below.
>>>> Also, problem marker entries can be filtered out in the problem
>>>> pane. Make sure that your marker is checked. As to why there are no
>>>> squiggles, i do not understand.
>>>>
>>>> <extension id="MyProblemMarker" name="MyProblemMarker"
>>>> point="org.eclipse.core.resources.markers">
>>>> <super type="org.eclipse.core.resources.problemmarker"/>
>>>> <persistent value="false"/>
>>>>
>>>> Hope this is helpful.
>>>>
>>>> Theodora Yeung
>>>> BEA Systems, Inc.
>>>>
>>>>
>>>>
>>>> "Prashant Deva" <prashant.deva@gmail.com> wrote in message
>>>> news:d82gkl$stg$2@news.eclipse.org...
>>>>
>>>>> Ok, i have seen questions for this problem many times in this
>>>>> newsgroup and other forums but this just doesn't seem to get answered.
>>>>> Now i seem to be having the same problem and i am stuck.
>>>>>
>>>>> You create markers the normal way by putting an extension point in
>>>>> ur plugin.xml and inheriting from
>>>>> org.eclipse.core.resources.problemmarker
>>>>> and you create your marker using call to createMarker with and then
>>>>> set all the attributes. all this inside a wrokspace runnable.
>>>>> But the thing is the marker *still* doesn't appear.
>>>>>
>>>>> Strangely enough if i create just a
>>>>> org.eclipse.core.resources.problemmarker, then it displays
>>>>> perfectly fine in the problems view and in the editor.
>>>>>
>>>>> But then why isn't my custom marker showing up?
>>>>>
>>>>> I have seen people asking about this problem many times, but their
>>>>> questions don't seem to be answered here.
>>>>>
>>>>> Pls, if this is *not* the way markers should be created , then it
>>>>> should be said so somehwere, and that article on eclispe.org 'Mark
>>>>> my words' needs to be either removed or updated.
>>>>>
>>>>> I do hope that someone will read this and care to reply.
>>>>> It is bloody frustating to do a thing exactly as its written and
>>>>> then finding it not to work.
>>>>>
>>>>> PRASHANT
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
Ok i figured it out. the problem is wrong documentation!!!
When you use refer to the marker type anywhere else, you gotta add the
id of the plugin to the id of the marker.
I don't why such a thing is not documented anywhere.
Also the example shown in the reference for the marker extension is just
plain wrong, cause it already has the full id specified in the marker
declaration, including the id of the plugin.
The article 'Mark my words' also does not specify this anywhere that the
id the plugin needs to be added!!!
Also the markerImageProvider extension, does not work if the marker you
are inheriting from already has an image. You gotta put in an editor
annotation, to make your custom marker images show.
I believe these are pretty serious errors in the documetation and should
be corrected.
PRASHANT
|
|
|
Goto Forum:
Current Time: Wed Jul 17 13:42:14 GMT 2024
Powered by FUDForum. Page generated in 0.04041 seconds
|