diff --git a/src/org/ntlab/traceDebugger/BreakPointView.java b/src/org/ntlab/traceDebugger/BreakPointView.java index 96e5389..d444aaa 100644 --- a/src/org/ntlab/traceDebugger/BreakPointView.java +++ b/src/org/ntlab/traceDebugger/BreakPointView.java @@ -173,7 +173,7 @@ importBreakpointAction = new Action() { @Override public void run() { - debuggingController.impoerBreakpointAction(); + debuggingController.importBreakpointAction(); } }; importBreakpointAction.setText("Import Breakpoints"); diff --git a/src/org/ntlab/traceDebugger/DebuggingController.java b/src/org/ntlab/traceDebugger/DebuggingController.java index fb99db0..19f6b6f 100644 --- a/src/org/ntlab/traceDebugger/DebuggingController.java +++ b/src/org/ntlab/traceDebugger/DebuggingController.java @@ -152,7 +152,7 @@ return true; } - public boolean impoerBreakpointAction() { + public boolean importBreakpointAction() { if (loadingTraceFileStatus != LoadingTraceFileStatus.DONE) { MessageDialog.openInformation(null, "Error", "Trace file was not found"); return false; diff --git a/src/org/ntlab/traceDebugger/TraceBreakPoints.java b/src/org/ntlab/traceDebugger/TraceBreakPoints.java index a3d2203..6ce271a 100644 --- a/src/org/ntlab/traceDebugger/TraceBreakPoints.java +++ b/src/org/ntlab/traceDebugger/TraceBreakPoints.java @@ -13,6 +13,7 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.model.IBreakpoint; +import org.eclipse.jdt.internal.debug.core.breakpoints.JavaLineBreakpoint; import org.ntlab.traceAnalysisPlatform.tracer.trace.MethodExecution; import org.ntlab.traceAnalysisPlatform.tracer.trace.MethodInvocation; import org.ntlab.traceAnalysisPlatform.tracer.trace.Statement; @@ -86,6 +87,7 @@ public void importBreakpointFromEclipse() { IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(); for (IBreakpoint breakpoint : breakpoints) { + if (!(breakpoint instanceof JavaLineBreakpoint)) continue; try { IMarker breakpointMarker = breakpoint.getMarker(); Map attributes = breakpointMarker.getAttributes();