Class OpenEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpenEvent
    extends java.util.EventObject
    Event object describing an open which may be generated from a selection or default selection event. The source of these events is a viewer.
    See Also:
    IOpenListener, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ISelection selection
      The selection.
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenEvent​(Viewer source, ISelection selection)
      Creates a new event for the given source and selection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ISelection getSelection()
      Returns the selection.
      Viewer getViewer()
      Returns the viewer that is the source of this event.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • selection

        protected ISelection selection
        The selection.
    • Constructor Detail

      • OpenEvent

        public OpenEvent​(Viewer source,
                         ISelection selection)
        Creates a new event for the given source and selection.
        Parameters:
        source - the viewer
        selection - the selection
    • Method Detail

      • getSelection

        public ISelection getSelection()
        Returns the selection.
        Returns:
        the selection
      • getViewer

        public Viewer getViewer()
        Returns the viewer that is the source of this event.
        Returns:
        the originating viewer