Home » Eclipse Projects » Eclipse Platform » Breakpoints not shown
Breakpoints not shown [message #278592] |
Wed, 05 January 2005 10:06 |
Axel Irriger 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 |
Darin Swanson 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 |
Axel Irriger 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> </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> </PRE><PRE>Axel</PRE>
<DIV><FONT face=3DArial size=3D2>"Darin Swanson" <</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>> 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>> If you open =
and then close=20
the editor, does the breakpoint appear?<BR>> Are you creating the =
marker in a=20
workspace runnable similar to the JDT <BR>> breakpoints?<BR>> =
<BR>>=20
HTH<BR>> Darins<BR>> <BR>> "Axel Irriger" <</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>> =
wrote in=20
message <BR>> </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>> > Hi everybody,<BR>> ><BR>> > I =
extended=20
eclipse with a new marker type and a breakpoint defined on it.<BR>> =
>=20
Further more, I specified an annotationType and a<BR>> >=20
markerAnnotationSpecification and linked an action to the<BR>> >=20
CompilationUnitEditor (JDT).<BR>> > Now, when I activate this =
action, the=20
marker is correctly, verifieable,<BR>> > placed on the resource, =
but not=20
shown in the editor :-/ When I declare the<BR>> > marker to be a =
subtype=20
of a JDT provided breakpoint it is shown.<BR>> > Unfortunately I =
want my=20
own image to be shown with this breakpoint, so how<BR>> > may I =
solve this=20
? Providing an annotationImageProvider did not help it is<BR>> > =
never=20
called (as it seems).<BR>> ><BR>> > Any help is greatly=20
appreciated.<BR>> ><BR>> =
> &a mp;nbsp; =20
Kind regards,<BR>> ><BR>>=20
> &a mp;nbsp; &a mp;nb=
sp; =20
Axel Irriger<BR>> ><BR>> ><BR>> > <BR>> <BR>>=20
</FONT></BODY></HTML>
------=_NextPart_000_0012_01C4F496.EA6FBE40--
|
|
|
Goto Forum:
Current Time: Fri Nov 08 23:57:13 GMT 2024
Powered by FUDForum. Page generated in 0.05278 seconds
|