Package org.eclipse.handly.model.impl
Class WorkingCopyCallback
java.lang.Object
org.eclipse.handly.model.impl.WorkingCopyCallback
- All Implemented Interfaces:
IWorkingCopyCallback
- Direct Known Subclasses:
DefaultWorkingCopyCallback,XtextWorkingCopyCallback
A partial implementation of
IWorkingCopyCallback, which clients may
opt to extend instead of implementing the interface directly.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final IWorkingCopyInfoReturns the working copy infosetfor this callback.voidInforms this callback that the working copy has been disposed.voidonInit(IWorkingCopyInfo info) Informs this callback about the working copy it will work on.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.handly.model.impl.IWorkingCopyCallback
needsReconciling, reconcile
-
Constructor Details
-
WorkingCopyCallback
public WorkingCopyCallback()
-
-
Method Details
-
onInit
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:
onInitin interfaceIWorkingCopyCallback- Parameters:
info- the working copy info (nevernull)- 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:
onDisposein interfaceIWorkingCopyCallback
-
getWorkingCopyInfo
Returns the working copy infosetfor this callback.- Returns:
- the working copy info
-