Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Breakpoints not shown
Breakpoints not shown [message #278592] Wed, 05 January 2005 10:06 Go to next message
Axel Irriger is currently offline Axel IrrigerFriend
Messages: 14
Registered: July 2009
Junior Member
Hi everybody,

I extended eclipse with a new marker type and a breakpoint defined on it.
Further more, I specified an annotationType and a
markerAnnotationSpecification and linked an action to the
CompilationUnitEditor (JDT).
Now, when I activate this action, the marker is correctly, verifieable,
placed on the resource, but not shown in the editor :-/ When I declare the
marker to be a subtype of a JDT provided breakpoint it is shown.
Unfortunately I want my own image to be shown with this breakpoint, so how
may I solve this ? Providing an annotationImageProvider did not help it is
never called (as it seems).

Any help is greatly appreciated.

Kind regards,

Axel Irriger
Re: Breakpoints not shown [message #278644 is a reply to message #278592] Wed, 05 January 2005 16:45 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
If you open and then close the editor, does the breakpoint appear?
Are you creating the marker in a workspace runnable similar to the JDT
breakpoints?

HTH
Darins

"Axel Irriger" <axel.irriger@sap.com> wrote in message
news:crge7d$bi1$1@www.eclipse.org...
> Hi everybody,
>
> I extended eclipse with a new marker type and a breakpoint defined on it.
> Further more, I specified an annotationType and a
> markerAnnotationSpecification and linked an action to the
> CompilationUnitEditor (JDT).
> Now, when I activate this action, the marker is correctly, verifieable,
> placed on the resource, but not shown in the editor :-/ When I declare the
> marker to be a subtype of a JDT provided breakpoint it is shown.
> Unfortunately I want my own image to be shown with this breakpoint, so how
> may I solve this ? Providing an annotationImageProvider did not help it is
> never called (as it seems).
>
> Any help is greatly appreciated.
>
> Kind regards,
>
> Axel Irriger
>
>
>
Re: Breakpoints not shown [message #278785 is a reply to message #278644] Fri, 07 January 2005 07:57 Go to previous message
Axel Irriger is currently offline Axel IrrigerFriend
Messages: 14
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C4F496.EA6FBE40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Darin,I attach an action to the CompilationUnitEditors' context menu =
which performs the following:/*Check for marker existence and deletion =
then removed.*/if(!alreadySet) {Map attribs =3D new Hashtable();try =
{MarkerUtilities.setLineNumber(attribs, =
linenumber);MarkerUtilities.createMarker(theResource, attribs, =
markerType);} catch (CoreException e) {e.printStackTrace();}try =
{theResource.touch(null); } catch (CoreException e2) =
{e2.printStackTrace();}}When performing this, the marker is put right =
into place and visible instantly, but only if my marker has theSupertype =
org.eclipse.jdt.debug.javaLineBreakpointMarker or something defined by =
the JDT.And to answer your question about the workspace runnable: My =
context menu action extends AbstractRulerActionDelegate and the =
functionality is put into its public void run(IAction action), which =
worksVery well.The only thing I don't understand is why it is only shown =
if it has this supertype .. :-?Kind regards,Axel"Darin Swanson" =
<Darin_Swanson@us.ibm.com> wrote in message =
news:crh5j6$tqj$1@www.eclipse.org...
> If you open and then close the editor, does the breakpoint appear?
> Are you creating the marker in a workspace runnable similar to the JDT =

> breakpoints?
>=20
> HTH
> Darins
>=20
> "Axel Irriger" <axel.irriger@sap.com> wrote in message=20
> news:crge7d$bi1$1@www.eclipse.org...
> > Hi everybody,
> >
> > I extended eclipse with a new marker type and a breakpoint defined =
on it.
> > Further more, I specified an annotationType and a
> > markerAnnotationSpecification and linked an action to the
> > CompilationUnitEditor (JDT).
> > Now, when I activate this action, the marker is correctly, =
verifieable,
> > placed on the resource, but not shown in the editor :-/ When I =
declare the
> > marker to be a subtype of a JDT provided breakpoint it is shown.
> > Unfortunately I want my own image to be shown with this breakpoint, =
so how
> > may I solve this ? Providing an annotationImageProvider did not help =
it is
> > never called (as it seems).
> >
> > Any help is greatly appreciated.
> >
> > Kind regards,
> >
> > Axel Irriger
> >
> >
> >=20
>=20
>
------=_NextPart_000_0012_01C4F496.EA6FBE40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY><PRE>Hi Darin,</PRE><PRE>I attach an action to the =
CompilationUnitEditors' context menu which performs the =
following:</PRE><PRE>/*</PRE><PRE>Check for marker existence and =
deletion then removed.</PRE><PRE>*/</PRE><PRE>if(!alreadySet) =
{</PRE><PRE>Map attribs =3D new =
Hashtable();</PRE><PRE>&nbsp;</PRE><PRE>try =
{</PRE><PRE>MarkerUtilities.setLineNumber(attribs, =
linenumber);</PRE><PRE>MarkerUtilities.createMarker(theResource, =
attribs, markerType);</PRE><PRE>} catch (CoreException e) =
{</PRE><PRE>e.printStackTrace();</PRE><PRE>}</PRE><PRE >try =
{</PRE><PRE>theResource.touch(null); </PRE><PRE>} catch (CoreException =
e2) =
{</PRE><PRE>e2.printStackTrace();</PRE><PRE>}</PRE><PRE >}</PRE><PRE>When =
performing this, the marker is put right into place and visible =
instantly, but only if my marker has the</PRE><PRE>Supertype =
org.eclipse.jdt.debug.javaLineBreakpointMarker or something defined by =
the JDT.</PRE><PRE>And to answer your question about the workspace =
runnable: My context menu action extends AbstractRulerActionDelegate and =
the functionality is put into its public void run(IAction action), which =
works</PRE><PRE>Very well.</PRE><PRE>The only thing I don't understand =
is why it is only shown if it has this supertype .. :-?</PRE><PRE>Kind =
regards,</PRE><PRE>&nbsp;</PRE><PRE>Axel</PRE>
<DIV><FONT face=3DArial size=3D2>"Darin Swanson" &lt;</FONT><A=20
href=3D"mailto:Darin_Swanson@us.ibm.com"><FONT face=3DArial=20
size=3D2>Darin_Swanson@us.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A href=3D"news:crh5j6$tqj$1@www.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:crh5j6$tqj$1@www.eclipse.org</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; If you open =
and then close=20
the editor, does the breakpoint appear?<BR>&gt; Are you creating the =
marker in a=20
workspace runnable similar to the JDT <BR>&gt; breakpoints?<BR>&gt; =
<BR>&gt;=20
HTH<BR>&gt; Darins<BR>&gt; <BR>&gt; "Axel Irriger" &lt;</FONT><A=20
href=3D"mailto:axel.irriger@sap.com"><FONT face=3DArial=20
size=3D2>axel.irriger@sap.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message <BR>&gt; </FONT><A =
href=3D"news:crge7d$bi1$1@www.eclipse.org"><FONT=20
face=3DArial size=3D2>news:crge7d$bi1$1@www.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt; &gt; Hi everybody,<BR>&gt; &gt;<BR>&gt; &gt; I =
extended=20
eclipse with a new marker type and a breakpoint defined on it.<BR>&gt; =
&gt;=20
Further more, I specified an annotationType and a<BR>&gt; &gt;=20
markerAnnotationSpecification and linked an action to the<BR>&gt; &gt;=20
CompilationUnitEditor (JDT).<BR>&gt; &gt; Now, when I activate this =
action, the=20
marker is correctly, verifieable,<BR>&gt; &gt; placed on the resource, =
but not=20
shown in the editor :-/ When I declare the<BR>&gt; &gt; marker to be a =
subtype=20
of a JDT provided breakpoint it is shown.<BR>&gt; &gt; Unfortunately I =
want my=20
own image to be shown with this breakpoint, so how<BR>&gt; &gt; may I =
solve this=20
? Providing an annotationImageProvider did not help it is<BR>&gt; &gt; =
never=20
called (as it seems).<BR>&gt; &gt;<BR>&gt; &gt; Any help is greatly=20
appreciated.<BR>&gt; &gt;<BR>&gt; =
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;=20
Kind regards,<BR>&gt; &gt;<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nb=
sp;&nbsp;&nbsp;&nbsp;=20
Axel Irriger<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; <BR>&gt; <BR>&gt;=20
</FONT></BODY></HTML>

------=_NextPart_000_0012_01C4F496.EA6FBE40--
Previous Topic:External Editor with PDE
Next Topic:File Path
Goto Forum:
  


Current Time: Sun Oct 06 07:10:46 GMT 2024

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

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

Back to the top