public class CodeActionRequest extends Object implements ICodeActionRequest
Constructor and Description |
---|
CodeActionRequest(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getComponent(Class clazz)
Returns the component class instance from the given class and null otherwise.
|
org.eclipse.lsp4j.Diagnostic |
getDiagnostic()
Returns the diagnostic.
|
DOMDocument |
getDocument()
Returns the DOM document.
|
LineIndentInfo |
getLineIndentInfo() |
org.eclipse.lsp4j.Range |
getRange()
Returns the code action range.
|
SharedSettings |
getSharedSettings()
Returns the shared settings.
|
XMLGenerator |
getXMLGenerator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canSupportResolve
getDocument, getSharedSettings
getComponent
public CodeActionRequest(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.Range range, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings)
public org.eclipse.lsp4j.Diagnostic getDiagnostic()
ICodeActionRequest
getDiagnostic
in interface ICodeActionRequest
public org.eclipse.lsp4j.Range getRange()
ICodeActionRequest
getRange
in interface ICodeActionRequest
public XMLGenerator getXMLGenerator() throws BadLocationException
getXMLGenerator
in interface ICodeActionRequest
BadLocationException
public LineIndentInfo getLineIndentInfo() throws BadLocationException
BadLocationException
public <T> T getComponent(Class clazz)
IComponentProvider
getComponent
in interface IComponentProvider
clazz
- class of the component.public DOMDocument getDocument()
IBaseCodeActionRequest
getDocument
in interface IBaseCodeActionRequest
public SharedSettings getSharedSettings()
IBaseCodeActionRequest
getSharedSettings
in interface IBaseCodeActionRequest
Copyright © 2022. All rights reserved.