1 11 package org.eclipse.debug.core.model; 12 13 14 import org.eclipse.core.resources.IMarker; 15 import org.eclipse.core.runtime.CoreException; 16 17 18 25 26 public abstract class LineBreakpoint extends Breakpoint implements ILineBreakpoint { 27 28 29 32 public int getLineNumber() throws CoreException { 33 IMarker m = getMarker(); 34 if (m != null) { 35 return m.getAttribute(IMarker.LINE_NUMBER, -1); 36 } 37 return -1; 38 } 39 40 43 public int getCharStart() throws CoreException { 44 IMarker m = getMarker(); 45 if (m != null) { 46 return m.getAttribute(IMarker.CHAR_START, -1); 47 } 48 return -1; 49 } 50 51 54 public int getCharEnd() throws CoreException { 55 IMarker m = getMarker(); 56 if (m != null) { 57 return m.getAttribute(IMarker.CHAR_END, -1); 58 } 59 return -1; 60 } 61 } 62 63 | Popular Tags |