Interface InvocationSource

  • All Known Subinterfaces:
    ContextMenuEvent

    public interface InvocationSource
    This interface provides information about the source from which a context menu was invoked.
    • Method Detail

      • invocationType

        InvocationType invocationType()
        Returns:
        An instance of InvocationType which provides the current location of the context menu being invoked.
      • isFrom

        boolean isFrom​(InvocationType... invocationType)
        A helper method to allow the extension to ask if the context is within a set of locations.
        Parameters:
        invocationType - One or more instances of InvocationType to check.
        Returns:
        True if the context menu is being invoked from one of the types that is being checked.