コード例 #1
0
        public bool IsEnabled(Document activeDocument)
        {
            var editorContext = GherkinEditorContext.FromDocument(activeDocument, gherkinLanguageServiceFactory);

            if (editorContext == null)
            {
                return(false);
            }

            return(CanGoToDefinition(editorContext));
        }
コード例 #2
0
        public void Invoke(Document activeDocument)
        {
            var editorContext = GherkinEditorContext.FromDocument(activeDocument, gherkinLanguageServiceFactory);

            if (editorContext == null)
            {
                return;
            }

            GoToDefinition(editorContext);
        }
        private void Invoke(Document activeDocument)
        {
            var editorContext = GherkinEditorContext.FromDocument(activeDocument, gherkinLanguageServiceFactory);

            if (editorContext == null)
            {
                return;
            }

            GenerateStepDefinitionSkeleton(editorContext);
        }