Class CMLActionRegistry


  • public class CMLActionRegistry
    extends java.lang.Object
    Class to register all code actions (refactoring and transformation commands) and to filter commands that can be applied for a given set of selected EObjects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<? extends org.eclipse.lsp4j.Command> getApplicableActionCommands​(org.contextmapper.dsl.cml.CMLResource resource, java.util.List<org.eclipse.emf.ecore.EObject> selectedObjects)  
      java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,​org.eclipse.lsp4j.CodeAction>> getApplicableQuickfixes​(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.xtext.ide.server.codeActions.ICodeActionService2.Options options)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CMLActionRegistry

        public CMLActionRegistry()
    • Method Detail

      • getApplicableActionCommands

        public java.util.List<? extends org.eclipse.lsp4j.Command> getApplicableActionCommands​(org.contextmapper.dsl.cml.CMLResource resource,
                                                                                               java.util.List<org.eclipse.emf.ecore.EObject> selectedObjects)
      • getApplicableQuickfixes

        public java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Command,​org.eclipse.lsp4j.CodeAction>> getApplicableQuickfixes​(org.eclipse.lsp4j.Diagnostic diagnostic,
                                                                                                                                                               org.eclipse.xtext.ide.server.codeActions.ICodeActionService2.Options options)