Package org.eclipse.lemminx.services
Class CodeActionRequest
java.lang.Object
org.eclipse.lemminx.services.CodeActionRequest
- All Implemented Interfaces:
IBaseCodeActionRequest,ICodeActionRequest,IComponentProvider
Code action request implementation.
- Author:
- Angelo ZERR
-
Constructor Summary
ConstructorsConstructorDescriptionCodeActionRequest(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.Range range, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings) -
Method Summary
Modifier and TypeMethodDescription<T> TgetComponent(Class clazz) Returns the component class instance from the given class and null otherwise.org.eclipse.lsp4j.DiagnosticReturns the diagnostic.Returns the DOM document.org.eclipse.lsp4j.RangegetRange()Returns the code action range.Returns the shared settings.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lemminx.services.extensions.codeaction.IBaseCodeActionRequest
getDocument, getSharedSettingsMethods inherited from interface org.eclipse.lemminx.services.extensions.codeaction.ICodeActionRequest
canSupportResolveMethods inherited from interface org.eclipse.lemminx.services.extensions.IComponentProvider
getComponent
-
Constructor Details
-
Method Details
-
getDiagnostic
public org.eclipse.lsp4j.Diagnostic getDiagnostic()Description copied from interface:ICodeActionRequestReturns the diagnostic.- Specified by:
getDiagnosticin interfaceICodeActionRequest- Returns:
- the diagnostic.
-
getRange
public org.eclipse.lsp4j.Range getRange()Description copied from interface:ICodeActionRequestReturns the code action range.- Specified by:
getRangein interfaceICodeActionRequest- Returns:
- the code action range.
-
getXMLGenerator
- Specified by:
getXMLGeneratorin interfaceICodeActionRequest- Throws:
BadLocationException
-
getLineIndentInfo
- Throws:
BadLocationException
-
getComponent
Description copied from interface:IComponentProviderReturns the component class instance from the given class and null otherwise.- Specified by:
getComponentin interfaceIComponentProvider- Parameters:
clazz- class of the component.- Returns:
- the component class instance from the given class and null otherwise.
-
getDocument
Description copied from interface:IBaseCodeActionRequestReturns the DOM document.- Specified by:
getDocumentin interfaceIBaseCodeActionRequest- Returns:
- the DOM document
-