Package org.erlide.backend.debug

Examples of org.erlide.backend.debug.ErlangLineBreakpoint


            final IBreakpoint breakpoint = manager.getBreakpoint(marker);
            if (breakpoint == null) {
                return false;
            }
            if (breakpoint instanceof ErlangLineBreakpoint) {
                final ErlangLineBreakpoint erlangLineBreakpoint = (ErlangLineBreakpoint) breakpoint;
                final ErlangDebugTarget target = erlangLineBreakpoint.getTarget();
                erlangLineBreakpoint.remove(target);
                MarkerUtilities.setLineNumber(marker, newLine);
                erlangLineBreakpoint.install(target);
                return true;
            }
            // if there exists a breakpoint on the line remove this one
            if (isLineBreakpointMarker(marker)) {
                ensureRanges(document, marker, line);
View Full Code Here


            final IErlangBreakpoint breakpoint = (IErlangBreakpoint) breakpoints[i];
            final IMarker marker = breakpoint.getMarker();
            if (marker != null && marker.exists() && marker.getType().equals(markerType)
                    && currentmarker.getId() != marker.getId()) {
                if (marker instanceof ErlangLineBreakpoint) {
                    final ErlangLineBreakpoint erlangLineBreakpoint = (ErlangLineBreakpoint) marker;
                    if (erlangLineBreakpoint.getLineNumber() == lineNumber) {
                        return erlangLineBreakpoint;
                    }
                }
            }
        }
View Full Code Here

                        }
                    }
                }
            }
            // create line breakpoint (doc line numbers start at 0)
            final ErlangLineBreakpoint lineBreakpoint = new ErlangLineBreakpoint();
            lineBreakpoint.createMarker(resource, lineNumber + 1);
            DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(lineBreakpoint);
        }
    }
View Full Code Here

                    .getBreakpointManager();
            final IBreakpoint[] breakpoints = breakpointManager.getBreakpoints();

            for (final IBreakpoint breakpoint : breakpoints) {
                if (breakpoint instanceof ErlangLineBreakpoint) {
                    final ErlangLineBreakpoint lineBreakpoint = (ErlangLineBreakpoint) breakpoint;
                    try {
                        if (lineBreakpoint.getModule().equals(topFrame.getModule())
                                && lineBreakpoint.getLineNumber() == topFrame
                                        .getLineNumber()) {
                            return new IBreakpoint[] { lineBreakpoint };
                        }
                    } catch (final DebugException e) {
                        ErlLogger.warn(e);
View Full Code Here

        if (supportsBreakpoint(breakpoint)) {
            try {
                if (breakpoint.isEnabled()
                        && DebugPlugin.getDefault().getBreakpointManager().isEnabled()
                        || !breakpoint.isRegistered()) {
                    final ErlangLineBreakpoint erlangLineBreakpoint = (ErlangLineBreakpoint) breakpoint;
                    erlangLineBreakpoint.install(this);
                }
            } catch (final CoreException e) {
                ErlLogger.error(e);
            }
        }
View Full Code Here

            ErlLogger.debug("breakpointRemoved " + breakpoint.getMarker().toString()
                    + breakpoint.getMarker().getAttribute(IMarker.LINE_NUMBER));
        } catch (final CoreException e) {
        }
        if (supportsBreakpoint(breakpoint)) {
            final ErlangLineBreakpoint erlangLineBreakpoint = (ErlangLineBreakpoint) breakpoint;
            erlangLineBreakpoint.remove(this);
        }
    }
View Full Code Here

TOP

Related Classes of org.erlide.backend.debug.ErlangLineBreakpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.