Class ResourceEvent

Object
EventObject
Event
ResourceEvent
All Implemented Interfaces:
Serializable, Cloneable

public class ResourceEvent extends Event
Event sent when a resource is loaded or closed. The source of this event are the Resource­Tree instance on which handlers are registered. The event contains a File to the resource opened or closed.
Since:
1.2
See Also:
  • Method Details

    • getResourceFile

      public Optional<File> getResourceFile()
      Returns the path to the resource being opened or closed.
      Returns:
      path to the resource being opened or closed.
      Since:
      1.4