forked from AVSystem/intellij-hocon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
not using deprecated FileTypeFactory
- Loading branch information
Showing
7 changed files
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
package org.jetbrains.plugins.hocon | ||
package lang | ||
|
||
import com.intellij.openapi.fileTypes.LanguageFileType | ||
import com.intellij.openapi.fileTypes.{FileType, LanguageFileType} | ||
import javax.swing.Icon | ||
|
||
object HoconFileType extends LanguageFileType(HoconLanguage) { | ||
val DefaultExtension = "conf" | ||
|
||
final class HoconFileType extends LanguageFileType(HoconLanguage) { | ||
def getIcon: Icon = HoconIcon | ||
def getDefaultExtension: String = DefaultExtension | ||
def getDefaultExtension: String = HoconFileType.DefaultExtension | ||
def getDescription = "HOCON" | ||
def getName = "HOCON" | ||
} | ||
object HoconFileType { | ||
val DefaultExtension = "conf" | ||
|
||
def isHocon(fileType: FileType): Boolean = fileType match { | ||
case _: HoconFileType => true | ||
case _ => false | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
src/org/jetbrains/plugins/hocon/lang/HoconFileTypeFactory.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters