Skip to content

Commit 4f70d6a

Browse files
committed
rename files
1 parent e687e17 commit 4f70d6a

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

src/main/kotlin/org/contextmapper/intellij/lang/CMLIcons.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/main/kotlin/org/contextmapper/intellij/lang/CMLLanguage.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/main/kotlin/org/contextmapper/intellij/lang/CMLFileType.kt renamed to src/main/kotlin/org/contextmapper/intellij/lang/ContextMapperDslFileType.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ import com.intellij.openapi.util.NlsSafe
66
import org.jetbrains.annotations.NonNls
77
import javax.swing.Icon
88

9-
class CMLFileType : LanguageFileType(CMLLanguage.INSTANCE) {
9+
class ContextMapperDslFileType : LanguageFileType(ContextMapperDslLanguage.INSTANCE) {
1010
override fun getName(): @NonNls String = "Context Mapper DSL"
1111

1212
override fun getDescription(): @NlsContexts.Label String = "Context Mapper DSL"
1313

1414
@Suppress("UnstableApiUsage") // NlsSafe is used by interface
1515
override fun getDefaultExtension(): @NlsSafe String = "cml"
1616

17-
override fun getIcon(): Icon = CMLIcons.FILE
17+
override fun getIcon(): Icon = ContextMapperDslIcons.FILE
1818

1919
companion object {
2020
@JvmField
2121
@Suppress("Unused") // required for plugin.xml
22-
val INSTANCE = CMLFileType()
22+
val INSTANCE = ContextMapperDslFileType()
2323
}
2424
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.contextmapper.intellij.lang
2+
3+
import com.intellij.openapi.util.IconLoader
4+
5+
class ContextMapperDslIcons {
6+
companion object {
7+
val FILE = IconLoader.getIcon("/icons/cml.png", ContextMapperDslIcons::class.java)
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.contextmapper.intellij.lang
2+
3+
import com.intellij.lang.Language
4+
5+
class ContextMapperDslLanguage : Language("Context Mapper DSL") {
6+
companion object {
7+
val INSTANCE = ContextMapperDslLanguage()
8+
}
9+
}

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-extension-points.html -->
2020
<extensions defaultExtensionNs="com.intellij">
2121
<fileType name="Context Mapper DSL"
22-
implementationClass="org.contextmapper.intellij.lang.CMLFileType"
22+
implementationClass="org.contextmapper.intellij.lang.ContextMapperDslFileType"
2323
fieldName="INSTANCE"
2424
language="Context Mapper DSL"
2525
extensions="cml"

0 commit comments

Comments
 (0)