mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
WEB-68929 Add XmlCoreBundle to xml-frontback-impl module
GitOrigin-RevId: c5427b6f2e3111612d58724b8b91c7cd9af2c356
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4efeeec224
commit
284bf6a561
@@ -4,6 +4,7 @@
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# File Types
|
||||
filetype.dtd.description=XML Document Type Definition
|
||||
filetype.html.description=HTML
|
||||
filetype.xhtml.description=XHTML
|
||||
filetype.xml.description=XML
|
||||
30
xml/xml-frontback-impl/src/com/intellij/xml/XmlCoreBundle.kt
Normal file
30
xml/xml-frontback-impl/src/com/intellij/xml/XmlCoreBundle.kt
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.intellij.xml
|
||||
|
||||
import com.intellij.DynamicBundle
|
||||
import org.jetbrains.annotations.Nls
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.annotations.PropertyKey
|
||||
import java.util.function.Supplier
|
||||
|
||||
object XmlCoreBundle {
|
||||
const val BUNDLE: @NonNls String = "messages.XmlCoreBundle"
|
||||
private val INSTANCE = DynamicBundle(XmlCoreBundle::class.java, BUNDLE)
|
||||
|
||||
@JvmStatic
|
||||
fun message(
|
||||
@PropertyKey(resourceBundle = BUNDLE)
|
||||
key: String,
|
||||
vararg params: Any?,
|
||||
): @Nls String {
|
||||
return INSTANCE.getMessage(key = key, params = params)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun messagePointer(
|
||||
@PropertyKey(resourceBundle = BUNDLE)
|
||||
key: String,
|
||||
vararg params: Any?,
|
||||
): Supplier<String> {
|
||||
return INSTANCE.getLazyMessage(key = key, params = params)
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,3 @@
|
||||
filetype.dtd.description=XML Document Type Definition
|
||||
filetype.html.description=HTML
|
||||
filetype.xhtml.description=XHTML
|
||||
filetype.xml.description=XML
|
||||
|
||||
html5.outline.mode=HTML5 Outline
|
||||
|
||||
xml.inspections.duplicate.declaration=Non-unique declaration name {0}
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.intellij.ide.highlighter;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.lang.dtd.DTDLanguage;
|
||||
import com.intellij.openapi.fileTypes.LanguageFileType;
|
||||
import com.intellij.xml.psi.XmlPsiBundle;
|
||||
import com.intellij.xml.XmlCoreBundle;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -23,7 +23,7 @@ public final class DTDFileType extends LanguageFileType {
|
||||
|
||||
@Override
|
||||
public @NotNull String getDescription() {
|
||||
return XmlPsiBundle.message("filetype.dtd.description");
|
||||
return XmlCoreBundle.message("filetype.dtd.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.vfs.CharsetToolkit;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.text.XmlCharsetDetector;
|
||||
import com.intellij.xml.psi.XmlPsiBundle;
|
||||
import com.intellij.xml.XmlCoreBundle;
|
||||
import com.intellij.xml.util.HtmlUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -39,7 +39,7 @@ public class HtmlFileType extends XmlLikeFileType {
|
||||
|
||||
@Override
|
||||
public @NotNull String getDescription() {
|
||||
return XmlPsiBundle.message("filetype.html.description");
|
||||
return XmlCoreBundle.message("filetype.html.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.intellij.ide.highlighter;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.lang.xhtml.XHTMLLanguage;
|
||||
import com.intellij.xml.psi.XmlPsiBundle;
|
||||
import com.intellij.xml.XmlCoreBundle;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -22,7 +22,7 @@ public final class XHtmlFileType extends HtmlFileType {
|
||||
|
||||
@Override
|
||||
public @NotNull String getDescription() {
|
||||
return XmlPsiBundle.message("filetype.xhtml.description");
|
||||
return XmlCoreBundle.message("filetype.xhtml.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.intellij.ide.highlighter;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.lang.xml.XMLLanguage;
|
||||
import com.intellij.openapi.fileTypes.OSFileIdeAssociation;
|
||||
import com.intellij.xml.psi.XmlPsiBundle;
|
||||
import com.intellij.xml.XmlCoreBundle;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -26,7 +26,7 @@ public final class XmlFileType extends XmlLikeFileType implements DomSupportEnab
|
||||
|
||||
@Override
|
||||
public @NotNull String getDescription() {
|
||||
return XmlPsiBundle.message("filetype.xml.description");
|
||||
return XmlCoreBundle.message("filetype.xml.description");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user