Package org.eclipse.lemminx.services
Class ResolveCodeActionRequest
- java.lang.Object
-
- org.eclipse.lemminx.services.ResolveCodeActionRequest
-
- All Implemented Interfaces:
IBaseCodeActionRequest,ICodeActionResolverRequest,IComponentProvider
public class ResolveCodeActionRequest extends Object implements ICodeActionResolverRequest
Resolve code action request implementation.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description ResolveCodeActionRequest(org.eclipse.lsp4j.CodeAction unresolved, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetComponent(Class clazz)Returns the component class instance from the given class and null otherwise.StringgetDataProperty(String property)Returns the data property value of the givenfieldNameand null otherwise.DOMDocumentgetDocument()Returns the DOM document.StringgetParticipantId()Returns the participant IDICodeActionResolvesParticipantwhich must resolve the unresolved code action.SharedSettingsgetSharedSettings()Returns the shared settings.org.eclipse.lsp4j.CodeActiongetUnresolved()Returns the unresolved code action.XMLGeneratorgetXMLGenerator(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, wait
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.codeaction.IBaseCodeActionRequest
getDocument, getSharedSettings
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.IComponentProvider
getComponent
-
-
-
-
Constructor Detail
-
ResolveCodeActionRequest
public ResolveCodeActionRequest(org.eclipse.lsp4j.CodeAction unresolved, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings)
-
-
Method Detail
-
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
public String 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
public String getDataProperty(String property)
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
public XMLGenerator getXMLGenerator(org.eclipse.lsp4j.Range range) throws BadLocationException
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
public <T> T getComponent(Class clazz)
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
public DOMDocument getDocument()
Description copied from interface:IBaseCodeActionRequestReturns the DOM document.- Specified by:
getDocumentin interfaceIBaseCodeActionRequest- Returns:
- the DOM document
-
getSharedSettings
public SharedSettings getSharedSettings()
Description copied from interface:IBaseCodeActionRequestReturns the shared settings.- Specified by:
getSharedSettingsin interfaceIBaseCodeActionRequest- Returns:
- the shared settings.
-
-