From 9b93ea05fc616332960c82bd7b47d39c11a21317 Mon Sep 17 00:00:00 2001 From: chrisly42 Date: Thu, 7 Oct 2021 15:33:28 +0200 Subject: [PATCH] Minor renaming & tweaks. --- README.md | 4 ++-- ...rovider.kt => M68kLabelDefinitionDocumentationProvider.kt} | 2 +- src/main/resources/META-INF/plugin.xml | 2 +- ...nProviderTest.kt => M68kLabelDocumentationProviderTest.kt} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/de/platon42/intellij/plugins/m68k/documentation/{M68kLabelDocumentationProvider.kt => M68kLabelDefinitionDocumentationProvider.kt} (95%) rename src/test/java/de/platon42/intellij/plugins/m68k/documentation/{M68KLabelDocumentationProviderTest.kt => M68kLabelDocumentationProviderTest.kt} (96%) diff --git a/README.md b/README.md index 14d4e1b..6302f4b 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,9 @@ Provides the assigned value of a `=`, `set` or `equ` symbol definition when hove #### M68kMacroDefinition -When used over a macro invocation, shows the expanded macro contents. +When used over a macro invocation, shows the expanded macro contents (only the \1 to \9 and \a to \z are expanded according to the parameters used). -#### M68kLabel +#### M68kLabelDefinition Shows the comments above the label (local or global) and an end-of-line comment, if available. If the first statement after the label is a directive like `include` or `dc.b`, it will be shown, too. diff --git a/src/main/java/de/platon42/intellij/plugins/m68k/documentation/M68kLabelDocumentationProvider.kt b/src/main/java/de/platon42/intellij/plugins/m68k/documentation/M68kLabelDefinitionDocumentationProvider.kt similarity index 95% rename from src/main/java/de/platon42/intellij/plugins/m68k/documentation/M68kLabelDocumentationProvider.kt rename to src/main/java/de/platon42/intellij/plugins/m68k/documentation/M68kLabelDefinitionDocumentationProvider.kt index 384c6ed..af6e90f 100644 --- a/src/main/java/de/platon42/intellij/plugins/m68k/documentation/M68kLabelDocumentationProvider.kt +++ b/src/main/java/de/platon42/intellij/plugins/m68k/documentation/M68kLabelDefinitionDocumentationProvider.kt @@ -8,7 +8,7 @@ import de.platon42.intellij.plugins.m68k.psi.M68kLocalLabel import de.platon42.intellij.plugins.m68k.psi.M68kNamedElement import de.platon42.intellij.plugins.m68k.psi.M68kStatement -class M68kLabelDocumentationProvider : AbstractM68kDocumentationProvider() { +class M68kLabelDefinitionDocumentationProvider : AbstractM68kDocumentationProvider() { override fun getQuickNavigateInfo(element: PsiElement, originalElement: PsiElement?): String? { return generateDoc(element, originalElement) diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 0255fbe..f63b278 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -40,7 +40,7 @@ + implementationClass="de.platon42.intellij.plugins.m68k.documentation.M68kLabelDefinitionDocumentationProvider"/>