Interface IToggleBreakpointsTargetExtension2

    • Method Detail

      • toggleBreakpointsWithEvent

        void toggleBreakpointsWithEvent​(IWorkbenchPart part,
                                        ISelection selection,
                                        Event event)
                                 throws CoreException
        Creates or removes existing breakpoints based on any modifiers in the given Event. The selection varies depending on the given part. For example, a text selection is provided for text editors, and a structured selection is provided for tree views, and may be a multi-selection.
        Parameters:
        part - the part on which the action has been invoked
        selection - selection on which line breakpoints should be toggled
        event - the accompanying Event which can be null if unavailable
        Throws:
        CoreException - if unable to perform the action
      • canToggleBreakpointsWithEvent

        boolean canToggleBreakpointsWithEvent​(IWorkbenchPart part,
                                              ISelection selection,
                                              Event event)
        Returns whether breakpoints can be toggled on the given selection with the given Event. The selection varies depending on the given part. For example, a text selection is provided for text editors, and a structured selection is provided for tree views, and may be a multi-selection.
        Parameters:
        part - the part on which the action has been invoked
        selection - selection on which line breakpoints should be toggled
        event - the accompanying Event which can be null if unavailable
        Returns:
        whether breakpoints can be toggled on the given selection with the given Event