Class AbstractQuickFixCommand
- java.lang.Object
-
- org.contextmapper.dsl.ide.commands.impl.quickfix.AbstractQuickFixCommand
-
- All Implemented Interfaces:
CMLResourceCommand
- Direct Known Subclasses:
SplitStoryByVerbCommand
public abstract class AbstractQuickFixCommand extends java.lang.Object implements CMLResourceCommand
-
-
Constructor Summary
Constructors Constructor Description AbstractQuickFixCommand(WorkspaceEditRecorder editRecorder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecuteCommand(org.contextmapper.dsl.cml.CMLResource cmlResource, org.eclipse.xtext.ide.server.Document document, org.eclipse.xtext.ide.server.ILanguageServerAccess access, org.eclipse.lsp4j.ExecuteCommandParams params)protected abstract org.contextmapper.dsl.quickfixes.CMLQuickFix<? extends org.eclipse.emf.ecore.EObject>getQuickfix(org.eclipse.lsp4j.ExecuteCommandParams params)Override this method to define the quickfix that shall be called.protected abstract org.eclipse.emf.ecore.EObjectgetSubject(org.contextmapper.dsl.cml.CMLResource cmlResource, org.eclipse.lsp4j.ExecuteCommandParams params)Override this method to resolve the subject on which the quickfix shall be applied.
-
-
-
Constructor Detail
-
AbstractQuickFixCommand
public AbstractQuickFixCommand(WorkspaceEditRecorder editRecorder)
-
-
Method Detail
-
getQuickfix
protected abstract org.contextmapper.dsl.quickfixes.CMLQuickFix<? extends org.eclipse.emf.ecore.EObject> getQuickfix(org.eclipse.lsp4j.ExecuteCommandParams params)
Override this method to define the quickfix that shall be called.
-
getSubject
protected abstract org.eclipse.emf.ecore.EObject getSubject(org.contextmapper.dsl.cml.CMLResource cmlResource, org.eclipse.lsp4j.ExecuteCommandParams params)Override this method to resolve the subject on which the quickfix shall be applied.
-
executeCommand
public void executeCommand(org.contextmapper.dsl.cml.CMLResource cmlResource, org.eclipse.xtext.ide.server.Document document, org.eclipse.xtext.ide.server.ILanguageServerAccess access, org.eclipse.lsp4j.ExecuteCommandParams params)- Specified by:
executeCommandin interfaceCMLResourceCommand
-
-