if (!EditorUtility.isDuplicateLineBreakpoint(JDIDebugModel.getPluginIdentifier(), IJavaDebugConstants.JAVA_LINE_BREAKPOINT, type, lineNumber)) {
if (!JDIDebugModel.isDuplicateLineBreakpoint(type, lineNumber)) {
	protected IBreakpoint createBreakpoint(IEditorInput editorInput) {		ISelection s= fJavaEditor.getSelectionProvider().getSelection();		if (!s.isEmpty()) {			ITextSelection selection= (ITextSelection) s;			try {				IDocument document= fJavaEditor.getDocumentProvider().getDocument(editorInput);				BreakpointLocationVerifier bv = new BreakpointLocationVerifier();				int lineNumber = bv.getValidBreakpointLocation(document, selection.getStartLine());				if (lineNumber > 0) {										IRegion line= document.getLineInformation(lineNumber - 1);										IType type = null;					if (editorInput instanceof ClassFileEditorInput) {												ClassFileEditorInput input= (ClassFileEditorInput) editorInput;						type = input.getClassFile().getType();										} else if (editorInput instanceof IFileEditorInput) {												IFileEditorInput input= (IFileEditorInput) editorInput;						IJavaElement element= JavaCore.create(input.getFile());						if (element instanceof ICompilationUnit) {							ICompilationUnit cu = (ICompilationUnit) element;							IJavaElement e = cu.getElementAt(line.getOffset());							if (e instanceof IType)								type = (IType)e;							else if (e != null && e instanceof IMember)								type = ((IMember) e).getDeclaringType();						}					}					if (type != null) {						if (!EditorUtility.isDuplicateLineBreakpoint(JDIDebugModel.getPluginIdentifier(), IJavaDebugConstants.JAVA_LINE_BREAKPOINT, type, lineNumber)) {							return JDIDebugModel.createLineBreakpoint(type, lineNumber, line.getOffset(), line.getOffset() + line.getLength(), 0);						}					}									}			} catch (DebugException e) {				Shell shell= fJavaEditor.getSite().getShell();				ErrorDialog.openError(shell, JavaEditorMessages.getString("AddBreakpoint.error.title1"), JavaEditorMessages.getString("AddBreakpoint.error.message1"), e.getStatus()); //$NON-NLS-2$ //$NON-NLS-1$			} catch (CoreException e) {				Shell shell= fJavaEditor.getSite().getShell();				ErrorDialog.openError(shell, JavaEditorMessages.getString("AddBreakpoint.error.title2"), JavaEditorMessages.getString("AddBreakpoint.error.message2"), e.getStatus()); //$NON-NLS-2$ //$NON-NLS-1$			} catch (BadLocationException e) {				Shell shell= fJavaEditor.getSite().getShell();				ErrorDialog.openError(shell, JavaEditorMessages.getString("AddBreakpoint.error.title3"), JavaEditorMessages.getString("AddBreakpoint.error.message3"), null); //$NON-NLS-2$ //$NON-NLS-1$			}		}		return null;	}