Class DebugContextEvent

  • All Implemented Interfaces:

    public class DebugContextEvent
    extends EventObject
    A debug context event. Debug context events are generated by debug context providers. A debug context is represented by a selection and flags (bit mask) describing how the context has changed.

    Clients may instantiate this class.

    See Also:
    IDebugContextListener, IDebugContextProvider, Serialized Form
    This class is not intended to be subclassed by clients.
    • Field Detail


        public static final int ACTIVATED
        Change constant (bit mask) indicating a context has been activated.
        See Also:
        Constant Field Values
      • STATE

        public static final int STATE
        Change constant (bit mask) indicating the state of a context has changed. State changes are only broadcast for previously activated contexts.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DebugContextEvent

        public DebugContextEvent​(IDebugContextProvider source,
                                 ISelection context,
                                 int flags)
        Constructs a new debug context event.
        source - source of the event - a debug context provider
        context - the relevant context
        flags - bit mask indicating how the context has changed - see change constants defined in this class
    • Method Detail

      • getContext

        public ISelection getContext()
        Returns the debug context associated with this event.
        debug context, possible an empty selection
      • getFlags

        public int getFlags()
        Returns flags which describe in more detail how a context has changed. See change constants defined in this class.
        event flags
      • getDebugContextProvider

        public IDebugContextProvider getDebugContextProvider()
        Returns the context provider that initiated this event.
        context provider