Examples of IBreakpoint


Examples of org.eclipse.debug.core.model.IBreakpoint

            try {
              IFile contextFile = getContextFile();
              String fileName = contextFile.getName();
              String projectName = contextFile.getProject().getName();
             
              IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
              if (bp != null && bp.isEnabled() == false) {
                bp.setEnabled(true);
              }
            } catch (CoreException e) {
                final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

          AbstractNode _ep = (AbstractNode) bo;
          IFile contextFile = getContextFile();
          String fileName = contextFile.getName();
          String projectName = contextFile.getProject().getName();
          if (_ep.supportsBreakpoint()) {
            IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
            try {
              return bp != null && bp.isEnabled() == false;
            } catch (CoreException ex) {
              Activator.getLogger().error(ex);
            }
          }
        }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

          AbstractNode _ep = (AbstractNode)bo;
            try {
              IFile contextFile = getContextFile();
              String fileName = contextFile.getName();
              String projectName = contextFile.getProject().getName();
                IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
                if (bp != null) {
                  bp.delete();
                }
            } catch (CoreException e) {
              final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

          IFile contextFile = getContextFile();
          String fileName = contextFile.getName();
          String projectName = contextFile.getProject().getName();
           
          // now ask the user to define a condition using a language
          IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
          if (bp != null && bp instanceof CamelConditionalBreakpoint) {
            CamelConditionalBreakpoint ccb = (CamelConditionalBreakpoint)bp;
            // TODO: open a dialog for the user to select language and enter the condition - maybe provide a helper for predefined variables
            ConditionalBreakpointEditorDialog dlg = new ConditionalBreakpointEditorDialog(Display.getDefault().getActiveShell(), _ep);
            dlg.setLanguage(ccb.getLanguage());
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

          IFile contextFile = getContextFile();
          String fileName = contextFile.getName();
          String projectName = contextFile.getProject().getName();
           
          // now ask the user to define a condition using a language
          IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
          return bp != null && bp instanceof CamelConditionalBreakpoint;
        }
        return false;
  }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

            IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
            for (IMarker marker : markers) {
                if (marker == null) {
                    continue;
                }
                IBreakpoint breakpoint = breakpointManager.getBreakpoint(marker);
                if (breakpoint != null && breakpointManager.isRegistered(breakpoint)) {
                    Position pos = getMarkerPosition(document, marker, annotationModel);

                    if (!isExternalFile) {
                        if (!onlyIncludeLastLineActivity) {
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

        fInfo = rulerInfo;
        fTextEditor = editor;
    }

    public void update() {
        IBreakpoint breakpoint = getBreakpointFromLastLineOfActivityInCurrentEditor();
        setBreakpoint(breakpoint);
        if (breakpoint == null) {
            setEnabled(false);
        } else {
            setEnabled(true);
            try {
                boolean enabled = breakpoint.isEnabled();
                setText(enabled ? "&Disable Breakpoint" : "&Enable Breakpoint");
            } catch (CoreException ce) {
                PydevDebugPlugin.log(IStatus.ERROR, ce.getLocalizedMessage(), ce);
            }
        }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

    }

    @Override
    public void run() {

        final IBreakpoint breakpoint = getBreakpoint();
        if (breakpoint != null) {
            new Job("Enabling / Disabling Breakpoint") { //$NON-NLS-1$
                protected IStatus run(IProgressMonitor monitor) {
                    try {
                        breakpoint.setEnabled(!breakpoint.isEnabled());
                        return Status.OK_STATUS;
                    } catch (final CoreException e) {
                        Display.getDefault().asyncExec(new Runnable() {
                            public void run() {
                                ErrorDialog.openError(getTextEditor().getEditorSite().getShell(),
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

    /**
     * @throws CoreException
     * @see Action#run()
     */
    public void run() {
        IBreakpoint breakPoint = getBreakpoint();
        if (breakPoint != null) {
            PropertyDialogAction action = new PropertyDialogAction(getTextEditor().getEditorSite(),
                    new ISelectionProvider() {
                        public void addSelectionChangedListener(ISelectionChangedListener listener) {
                        }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

            action.run();
        }
    }

    public void update() {
        IBreakpoint breakpoint = getBreakpointFromLastLineOfActivityInCurrentEditor();
        if (breakpoint == null || !(breakpoint instanceof PyBreakpoint)) {
            setBreakpoint(null);
            setEnabled(false);
        } else {
            setBreakpoint(breakpoint);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.