Package org.eclipse.lsp4j
Class ShowDocumentParams
- java.lang.Object
-
- org.eclipse.lsp4j.ShowDocumentParams
-
public class ShowDocumentParams extends java.lang.ObjectParams to show a document.Since 3.16.0
-
-
Constructor Summary
Constructors Constructor Description ShowDocumentParams()ShowDocumentParams(java.lang.String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.BooleangetExternal()Indicates to show the resource in an external program.RangegetSelection()An optional selection range if the document is a text document.java.lang.BooleangetTakeFocus()An optional property to indicate whether the editor showing the document should take focus or not.java.lang.StringgetUri()The document uri to show.inthashCode()voidsetExternal(java.lang.Boolean external)Indicates to show the resource in an external program.voidsetSelection(Range selection)An optional selection range if the document is a text document.voidsetTakeFocus(java.lang.Boolean takeFocus)An optional property to indicate whether the editor showing the document should take focus or not.voidsetUri(java.lang.String uri)The document uri to show.java.lang.StringtoString()
-
-
-
Method Detail
-
getUri
public java.lang.String getUri()
The document uri to show.
-
setUri
public void setUri(java.lang.String uri)
The document uri to show.
-
getExternal
public java.lang.Boolean getExternal()
Indicates to show the resource in an external program. To show for example https://www.eclipse.org/ in the default WEB browser set totrue.
-
setExternal
public void setExternal(java.lang.Boolean external)
Indicates to show the resource in an external program. To show for example https://www.eclipse.org/ in the default WEB browser set totrue.
-
getTakeFocus
public java.lang.Boolean getTakeFocus()
An optional property to indicate whether the editor showing the document should take focus or not. Clients might ignore this property if an external program is started.
-
setTakeFocus
public void setTakeFocus(java.lang.Boolean takeFocus)
An optional property to indicate whether the editor showing the document should take focus or not. Clients might ignore this property if an external program is started.
-
getSelection
public Range getSelection()
An optional selection range if the document is a text document. Clients might ignore the property if an external program is started or the file is not a text file.
-
setSelection
public void setSelection(Range selection)
An optional selection range if the document is a text document. Clients might ignore the property if an external program is started or the file is not a text file.
-
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
-
-