From 9bd45c2ab02651942899d2b3011d5c40a74b0ef6 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Mon, 6 May 2013 16:42:18 +0400 Subject: [PATCH] Html: Custom tag completion --- .../src/messages/XmlBundle.properties | 1 + .../src/META-INF/XmlPlugin.xml | 2 ++ .../psi/impl/source/xml/TagNameReference.java | 8 ++--- .../com/intellij/xml/XmlTagNameProvider.java | 34 +++++++++++++++++++ 4 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 xml/impl/src/com/intellij/xml/XmlTagNameProvider.java diff --git a/platform/platform-resources-en/src/messages/XmlBundle.properties b/platform/platform-resources-en/src/messages/XmlBundle.properties index 3f8b985044a2..bc2b9ca5fdf9 100644 --- a/platform/platform-resources-en/src/messages/XmlBundle.properties +++ b/platform/platform-resources-en/src/messages/XmlBundle.properties @@ -139,6 +139,7 @@ label.edit.external.resource.configure.ignored.resources=&Ignored Schemas and DT no.external.resources=No external resources no.ignored.resources=No ignored resources +custom.html.tag=Custom Html Tag add.custom.html.tag=Add {0} to custom html tags add.custom.html.attribute=Add {0} to custom html attributes add.optional.html.attribute=Add {0} to not required html attributes diff --git a/platform/platform-resources/src/META-INF/XmlPlugin.xml b/platform/platform-resources/src/META-INF/XmlPlugin.xml index a2ffa9851d80..c3bfefc9e826 100644 --- a/platform/platform-resources/src/META-INF/XmlPlugin.xml +++ b/platform/platform-resources/src/META-INF/XmlPlugin.xml @@ -18,6 +18,8 @@ interface="com.intellij.xml.XmlSchemaProvider"/> + EP_NAME = new ExtensionPointName("com.intellij.xml.tagNameProvider"); + + void addTagNameVariants(List elements, @NotNull XmlTag tag, String prefix); +}