Package org.erlide.backend.debug

Examples of org.erlide.backend.debug.IErlangBreakpoint


        final String markerType = currentmarker.getType();
        for (int i = 0; i < breakpoints.length; i++) {
            if (!(breakpoints[i] instanceof IErlangBreakpoint)) {
                continue;
            }
            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) {
View Full Code Here


    @Override
    public boolean performOk() {
        final IWorkspaceRunnable wr = new IWorkspaceRunnable() {
            @Override
            public void run(final IProgressMonitor monitor) throws CoreException {
                final IErlangBreakpoint breakpoint = getBreakpoint();
                final boolean delOnCancel = breakpoint.getMarker().getAttribute(
                        ATTR_DELETE_ON_CANCEL) != null;
                if (delOnCancel) {
                    // if this breakpoint is being created, remove the
                    // "delete on cancel" attribute
                    // and register with the breakpoint manager
                    breakpoint.getMarker().setAttribute(ATTR_DELETE_ON_CANCEL,
                            (String) null);
                    breakpoint.setRegistered(true);
                }
                doStore();
            }
        };
        try {
View Full Code Here

    /**
     * Stores the values configured in this page. This method should be called
     * from within a workspace runnable to reduce the number of resource deltas.
     */
    protected void doStore() throws CoreException {
        final IErlangBreakpoint breakpoint = getBreakpoint();
        // storeHitCount(breakpoint);
        storeEnabled(breakpoint);
        storeBreakAction(breakpoint);
    }
View Full Code Here

    // private Button fMethodEntry;
    // private Button fMethodExit;

    @Override
    protected void doStore() throws CoreException {
        final IErlangBreakpoint breakpoint = getBreakpoint();
        super.doStore();
        if (fConditionEditor != null) {
            final boolean enableCondition = fEnableConditionButton.getSelection();
            final String condition = fConditionEditor.getCondition();
            // final boolean suspendOnTrue = fConditionIsTrue.getSelection();
            if (breakpoint.isConditionEnabled() != enableCondition) {
                breakpoint.setConditionEnabled(enableCondition);
            }
            if (!condition.equals(breakpoint.getCondition())) {
                breakpoint.setCondition(condition);
            }
            // if (breakpoint.isConditionSuspendOnTrue() != suspendOnTrue) {
            // breakpoint.setConditionSuspendOnTrue(suspendOnTrue);
            // }
        }
View Full Code Here

     * @see org.eclipse.jdt.internal.debug.ui.propertypages.JavaBreakpointPage#createTypeSpecificEditors(org.eclipse.swt.widgets.Composite)
     */
    @Override
    protected void createTypeSpecificEditors(final Composite parent) throws CoreException {
        setTitle("Line Breakpoint");
        final IErlangBreakpoint breakpoint = getBreakpoint();
        if (breakpoint.supportsCondition()) {
            createConditionEditor(parent);
        }
        // if (breakpoint instanceof IJavaWatchpoint) {
        // setTitle(PropertyPageMessages.JavaLineBreakpointPage_19);
        // final IJavaWatchpoint watchpoint = (IJavaWatchpoint) getBreakpoint();
View Full Code Here

     *            the composite in which the condition editor should be created
     * @throws CoreException
     *             if an exception occurs accessing the breakpoint
     */
    private void createConditionEditor(final Composite parent) throws CoreException {
        final IErlangBreakpoint breakpoint = getBreakpoint();
        // String label = null;
        // if (BreakpointUtils.getType(breakpoint) != null) {
        // final IBindingService bindingService = (IBindingService) PlatformUI
        // .getWorkbench().getAdapter(IBindingService.class);
        // if (bindingService != null) {
        // final TriggerSequence keyBinding = bindingService
        // .getBestActiveBindingFor(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
        // if (keyBinding != null) {
        // label = MessageFormat.format(
        // PropertyPageMessages.JavaLineBreakpointPage_12,
        // new String[] { keyBinding.format() });
        // }
        // }
        // }
        // if (label == null) {
        // label = PropertyPageMessages.JavaLineBreakpointPage_13;
        // }
        final Group g = new Group(parent, SWT.NONE);
        g.setLayout(new GridLayout(1, false));
        g.setText(EMPTY_STRING);
        g.setFont(parent.getFont());
        final GridData gd = new GridData(GridData.FILL_BOTH);
        gd.horizontalSpan = 1;
        g.setLayoutData(gd);
        final Composite conditionComposite = g;
        fEnableConditionButton = createCheckButton(conditionComposite, "Enable");
        fEnableConditionButton.setSelection(breakpoint.isConditionEnabled());
        fEnableConditionButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                setConditionEnabled(fEnableConditionButton.getSelection());
            }
View Full Code Here

TOP

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

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.