Interface InvocationSource

All Known Subinterfaces:
AuditIssueContextMenuEvent, ContextMenuEvent

public interface InvocationSource
Provides information about the source from which a context menu was invoked.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    isFrom(InvocationType... invocationType)
    A helper method to allow the extension to ask if the context is within a set of locations.
  • Method Details

    • 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.