Class WorkingCopyCallback

java.lang.Object
org.eclipse.handly.model.impl.WorkingCopyCallback
All Implemented Interfaces:
IWorkingCopyCallback
Direct Known Subclasses:
DefaultWorkingCopyCallback, XtextWorkingCopyCallback

public abstract class WorkingCopyCallback extends Object implements IWorkingCopyCallback
A partial implementation of IWorkingCopyCallback, which clients may opt to extend instead of implementing the interface directly.
  • Constructor Details

    • WorkingCopyCallback

      public WorkingCopyCallback()
  • Method Details

    • onInit

      public void onInit(IWorkingCopyInfo info) throws org.eclipse.core.runtime.CoreException
      Informs this callback about the working copy it will work on. This method is called before any other method and marks the start of the callback's lifecycle.

      Clients should not call this method (the model implementation calls it at appropriate times).

      Subclasses may override this method, but must make sure to call the super implementation.

      Specified by:
      onInit in interface IWorkingCopyCallback
      Parameters:
      info - the working copy info (never null)
      Throws:
      org.eclipse.core.runtime.CoreException - if this callback was not initialized successfully
    • onDispose

      public void onDispose()
      Informs this callback that the working copy has been disposed. This is the last method called on the callback and marks the end of the callback's lifecycle.

      Clients should not call this method (the model implementation calls it at appropriate times).

      Subclasses may override this method, but must make sure to call the super implementation.

      Specified by:
      onDispose in interface IWorkingCopyCallback
    • getWorkingCopyInfo

      protected final IWorkingCopyInfo getWorkingCopyInfo()
      Returns the working copy info set for this callback.
      Returns:
      the working copy info