IJavaLineBreakpoint bp = JDIDebugModel.createLineBreakpoint(getBreakpointResource(type), type.getFullyQualifiedName(), lineNumber, line.getOffset(), line.getOffset() + line.getLength(), 0, true, attributes);
JDIDebugModel.createLineBreakpoint(getBreakpointResource(type), type.getFullyQualifiedName(), lineNumber, line.getOffset(), line.getOffset() + line.getLength(), 0, true, attributes);
	protected void addMarker() {				IEditorInput editorInput= getTextEditor().getEditorInput();				IDocument document= getDocument();		int rulerLine= getVerticalRuler().getLineOfLastMouseButtonActivity();				try {			BreakpointLocationVerifier bv = new BreakpointLocationVerifier();			int lineNumber = bv.getValidBreakpointLocation(document, rulerLine);			if (lineNumber > 0) {								IRegion line= document.getLineInformation(lineNumber - 1);								IType type = null;				if (editorInput instanceof IClassFileEditorInput) {					IClassFileEditorInput input= (IClassFileEditorInput) editorInput;					type = input.getClassFile().getType();				} else if (editorInput instanceof IFileEditorInput) {					IFileEditorInput input= (IFileEditorInput) editorInput;					ICompilationUnit cu = (ICompilationUnit) JavaCore.create(input.getFile());					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 (!JDIDebugModel.lineBreakpointExists(type.getFullyQualifiedName(), lineNumber)) {						Map attributes = new HashMap(10);						JavaCore.addJavaElementMarkerAttributes(attributes, type);						attributes.put("org.eclipse.jdt.debug.ui.JAVA_ELEMENT_HANDLE_ID", type.getHandleIdentifier());						IJavaLineBreakpoint bp = JDIDebugModel.createLineBreakpoint(getBreakpointResource(type), type.getFullyQualifiedName(), lineNumber, line.getOffset(), line.getOffset() + line.getLength(), 0, true, attributes);					}				}			}		} catch (DebugException e) {			Shell shell= getTextEditor().getSite().getShell();			ErrorDialog.openError(shell, JavaEditorMessages.getString("ManageBreakpoints.error.adding.title1"), JavaEditorMessages.getString("ManageBreakpoints.error.adding.message1"), e.getStatus()); //$NON-NLS-2$ //$NON-NLS-1$		} catch (CoreException e) {			Shell shell= getTextEditor().getSite().getShell();			ErrorDialog.openError(shell, JavaEditorMessages.getString("ManageBreakpoints.error.adding.title2"), JavaEditorMessages.getString("ManageBreakpoints.error.adding.message2"), e.getStatus()); //$NON-NLS-2$ //$NON-NLS-1$		} catch (BadLocationException e) {			Shell shell= getTextEditor().getSite().getShell();			ErrorDialog.openError(shell, JavaEditorMessages.getString("ManageBreakpoints.error.adding.title3"), JavaEditorMessages.getString("ManageBreakpoints.error.adding.message3"), null); //$NON-NLS-2$ //$NON-NLS-1$		}	}