Package org.eclipse.lsp4j
Class DidChangeNotebookDocumentParams
- java.lang.Object
-
- org.eclipse.lsp4j.DidChangeNotebookDocumentParams
-
public class DidChangeNotebookDocumentParams extends java.lang.ObjectThe params sent in a change notebook document notification.Since 3.17.0
-
-
Constructor Summary
Constructors Constructor Description DidChangeNotebookDocumentParams()DidChangeNotebookDocumentParams(VersionedNotebookDocumentIdentifier notebookDocument, NotebookDocumentChangeEvent change)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)NotebookDocumentChangeEventgetChange()The actual changes to the notebook document.VersionedNotebookDocumentIdentifiergetNotebookDocument()The notebook document that did change.inthashCode()voidsetChange(NotebookDocumentChangeEvent change)The actual changes to the notebook document.voidsetNotebookDocument(VersionedNotebookDocumentIdentifier notebookDocument)The notebook document that did change.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DidChangeNotebookDocumentParams
public DidChangeNotebookDocumentParams()
-
DidChangeNotebookDocumentParams
public DidChangeNotebookDocumentParams(VersionedNotebookDocumentIdentifier notebookDocument, NotebookDocumentChangeEvent change)
-
-
Method Detail
-
getNotebookDocument
public VersionedNotebookDocumentIdentifier getNotebookDocument()
The notebook document that did change. The version number points to the version after all provided changes have been applied.
-
setNotebookDocument
public void setNotebookDocument(VersionedNotebookDocumentIdentifier notebookDocument)
The notebook document that did change. The version number points to the version after all provided changes have been applied.
-
getChange
public NotebookDocumentChangeEvent getChange()
The actual changes to the notebook document.The change describes single state change to the notebook document. So it moves a notebook document, its cells and its cell text document contents from state S to S'.
To mirror the content of a notebook using change events use the following approach:
- start with the same initial content
- apply the 'notebookDocument/didChange' notifications in the order you receive them.
-
setChange
public void setChange(NotebookDocumentChangeEvent change)
The actual changes to the notebook document.The change describes single state change to the notebook document. So it moves a notebook document, its cells and its cell text document contents from state S to S'.
To mirror the content of a notebook using change events use the following approach:
- start with the same initial content
- apply the 'notebookDocument/didChange' notifications in the order you receive them.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-