| Summary: | Eclipse does not persist breakpoint marker! | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Alex Le <unbonnevie> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dj.houghton |
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Your marker <id> and breakpoint <markerType> do not match. The id in the markers extension point must be an unqualified name, whereas the markerType attribue in the breakpoints extension must be qualified, like:
<extension
id="markerType.breakpoint"
... </extension>
<extension
point="org.eclipse.debug.core.breakpoints">
<breakpoint
markerType="com.xyz.markerType.breakpoint"
...
(In reply to comment #1) > Your marker <id> and breakpoint <markerType> do not match. The id in the > markers extension point must be an unqualified name, whereas the markerType > attribue in the breakpoints extension must be qualified, like: > > <extension > id="markerType.breakpoint" > ... </extension> > > > <extension > point="org.eclipse.debug.core.breakpoints"> > > <breakpoint > markerType="com.xyz.markerType.breakpoint" > ... > My apology...Someone in the team changed the plugin id :-) Also, I did exactly what you mentioned above (like the PDA example), but, saw that it didn't work. So, I thought I would have the id fully qualified. Of course, it didn't work :-) Just on the side, why would id the does not have to be fully qualified, that is, like the marker type? It's somewhat confusing and error-proned, IHMO. DJ, why does the "id" attribute of the marker extension point take an unqualified name? is that the just the way the "id" attribute of extension's work? (most extension points have "id" as an attribute in elements rather than using the "id" attribute of the extension itself). Ext/ExtPt ids can be either simple or qualified. Its related to bug 112856. (and the M5a build that we did) Summary: In Eclipse 3.1, the id was simply appended to the plug-in id and the fully qualified id was the plug-in id + the "simple" id. In Eclipse 3.2 the id can be either "simple" (no dots) or fully qualified. If it doesn't contain a dot, then it is appended to the plug-in id like before. If it contains a dot then it is assumed to be a fully qualified id and we don't process it. Note that you have to change the plugin.xml version if you want to use the new behaviour. |
Hi, Below is my extension point. I am able to set breakpoints to a resource (IFile) in my project and see my breakpoints in the "Breakpoints" view. The problem is that after I quit Eclipse and come back, all my breakpoints are gone! It never got persisted. I am using Eclipse 3.2RC2. I don't see this happens in the earlier versions of Eclipse, e.g., 3.1.X. <extension id="com.xyz.markerType.breakpoint" name="My Breakpoint Marker Type" point="org.eclipse.core.resources.markers"> <super type="org.eclipse.debug.core.breakpointMarker"/> <persistent value="true"> </persistent> </extension> <extension point="org.eclipse.debug.core.breakpoints"> <breakpoint markerType="com.xyz.markerType.breakpoint" name="%BWBreakpointName" class="com.xyz.BreakpointImplClass" id="my.breakpoint"/>