1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.debug.internal.ui.actions;
13
import org.eclipse.jface.text.IDocument;
21
public class BreakpointLocationVerifier
24
* Returns the line number closest to the given line number that represents a
25
* valid location for a breakpoint in the given document, or -1 if a valid location
28
public int getValidLineBreakpointLocation( IDocument doc, int lineNumber )
31
return lineNumber + 1;
34
public int getValidAddressBreakpointLocation( IDocument doc, int lineNumber )
37
return lineNumber + 1;