diff options
Diffstat (limited to 'org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java')
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java index 15c9de1c1..72e14587e 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -57,8 +57,13 @@ import org.eclipse.debug.core.model.IBreakpoint; import org.eclipse.debug.core.model.IBreakpointImportParticipant; /** - * The breakpoint manager manages all registered breakpoints - * for the debug plug-in. It is instantiated by the debug plug-in at startup. + * The breakpoint manager manages all registered breakpoints for the Debug plug-in. It is + * instantiated by the Debug plug-in at startup. + * <p> + * <strong>Note:</strong> This manager is created while the Debug plug-in is started, but it + * will not automatically be initialized. Client code that expects markers and breakpoints to be + * initialized must call {@link #ensureInitialized()}. + * </p> * * @see IBreakpointManager */ @@ -398,13 +403,16 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis } /** - * Perform any initialization of the manager. - * - * Called when {@link DebugPlugin#start(org.osgi.framework.BundleContext)} is called. + * Ensures that this manager is initialized. + * <p> + * This manager is created while the Debug plug-in is started, but it will not automatically + * be initialized. Client code that expects markers and breakpoints to be initialized must call + * this method. + * </p> * * @since 3.8 */ - public void start() { + public void ensureInitialized() { getBreakpoints0(); } |