Package org.eclipse.lemminx.services
Class ResolveCodeActionRequest
java.lang.Object
org.eclipse.lemminx.services.ResolveCodeActionRequest
- All Implemented Interfaces:
IBaseCodeActionRequest,ICodeActionResolverRequest,IComponentProvider
Resolve code action request implementation.
- Author:
- Angelo ZERR
-
Constructor Summary
ConstructorsConstructorDescriptionResolveCodeActionRequest(org.eclipse.lsp4j.CodeAction unresolved, 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.getDataProperty(String property) Returns the data property value of the givenfieldNameand null otherwise.Returns the DOM document.Returns the participant IDICodeActionResolvesParticipantwhich must resolve the unresolved code action.Returns the shared settings.org.eclipse.lsp4j.CodeActionReturns the unresolved code action.getXMLGenerator(org.eclipse.lsp4j.Range range) Returns the XML generator and null otherwise.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.IComponentProvider
getComponent
-
Constructor Details
-
Method Details
-
getUnresolved
public org.eclipse.lsp4j.CodeAction getUnresolved()Description copied from interface:ICodeActionResolverRequestReturns the unresolved code action.- Specified by:
getUnresolvedin interfaceICodeActionResolverRequest- Returns:
- the unresolved code action.
-
getParticipantId
Description copied from interface:ICodeActionResolverRequestReturns the participant IDICodeActionResolvesParticipantwhich must resolve the unresolved code action.- Specified by:
getParticipantIdin interfaceICodeActionResolverRequest- Returns:
- the participant ID
ICodeActionResolvesParticipantwhich must resolve the unresolved code action.
-
getDataProperty
Description copied from interface:ICodeActionResolverRequestReturns the data property value of the givenfieldNameand null otherwise.- Specified by:
getDataPropertyin interfaceICodeActionResolverRequest- Parameters:
property- the field name.- Returns:
- the data property value of the given
fieldNameand null otherwise.
-
getXMLGenerator
Description copied from interface:ICodeActionResolverRequestReturns the XML generator and null otherwise.- Specified by:
getXMLGeneratorin interfaceICodeActionResolverRequest- Parameters:
range- the range of the Code Action- Returns:
- the XML generator and null otherwise.
- 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
-