Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 345298 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.debug.core/core/org/eclipse/debug/core/model/Breakpoint.java (-7 / +11 lines)
Lines 41-57 Link Here
41
41
42
public abstract class Breakpoint extends PlatformObject implements IBreakpoint {
42
public abstract class Breakpoint extends PlatformObject implements IBreakpoint {
43
	
43
	
44
	static {
45
		// making sure that the BreakpointManager is correctly initialized
46
		// before any breakpoint marker related operation (see bug 54993)
47
		DebugPlugin.getDefault().getBreakpointManager().getBreakpoints();
48
	}
49
				
50
	/**
44
	/**
51
	 * Underlying marker.
45
	 * Underlying marker.
52
	 */
46
	 */
53
	private IMarker fMarker= null;
47
	private IMarker fMarker= null;
54
	
48
49
    /**
50
     * Default constructor used to ensure that breakpoint manager is initialized.
51
     */
52
    public Breakpoint() {
53
        // making sure that the BreakpointManager is correctly initialized
54
        // before any breakpoint marker related operation (see bug 54993)
55
        DebugPlugin.getDefault().getBreakpointManager().getBreakpoints();
56
    }
57
                
58
55
	/**
59
	/**
56
	 * @see IBreakpoint#setMarker(IMarker)
60
	 * @see IBreakpoint#setMarker(IMarker)
57
	 */
61
	 */
(-)a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java (+7 lines)
Lines 394-399 Link Here
394
	}
394
	}
395
	
395
	
396
	/**
396
	/**
397
	 * Calls {@link #initializeBreakpoints()} if breakpoints have not yet been initialized.
398
	 */
399
	public void ensureBreakpointsInitialized() {
400
	    getBreakpoints0();
401
	}
402
	
403
	/**
397
	 * The BreakpointManager waits to load the breakpoints
404
	 * The BreakpointManager waits to load the breakpoints
398
	 * of the workspace until a request is made to retrieve the 
405
	 * of the workspace until a request is made to retrieve the 
399
	 * breakpoints.
406
	 * breakpoints.

Return to bug 345298