Class ShowInContext

  • Direct Known Subclasses:
    PropertyShowInContext

    public class ShowInContext
    extends java.lang.Object
    Carries the context for the Show In action. The default implementation carries an input and a selection. Subclasses may extend.
    Since:
    2.1
    See Also:
    IShowInSource, IShowInTarget
    • Constructor Summary

      Constructors 
      Constructor Description
      ShowInContext​(java.lang.Object input, ISelection selection)
      Constructs a new ShowInContext with the given input and selection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getInput()
      Returns the input, or null to indicate no input
      ISelection getSelection()
      Returns the selection, or null to indicate no selection.
      void setInput​(java.lang.Object input)
      Sets the input, or null to indicate no input.
      void setSelection​(ISelection selection)
      Sets the selection, or null to indicate no selection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShowInContext

        public ShowInContext​(java.lang.Object input,
                             ISelection selection)
        Constructs a new ShowInContext with the given input and selection.
        Parameters:
        input - the input or null
        selection - the selection or null
    • Method Detail

      • getInput

        public java.lang.Object getInput()
        Returns the input, or null to indicate no input
        Returns:
        the input or null.
      • getSelection

        public ISelection getSelection()
        Returns the selection, or null to indicate no selection.
        Returns:
        the selection or null
      • setInput

        public void setInput​(java.lang.Object input)
        Sets the input, or null to indicate no input.
        Parameters:
        input - the input or null
      • setSelection

        public void setSelection​(ISelection selection)
        Sets the selection, or null to indicate no selection.
        Parameters:
        selection - the selection or null