blob: a54ac47c442844136e01b0d39b2c689133c8d721 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.intellij.schema;
import com.intellij.openapi.fileTypes.LanguageFileType;
import javax.swing.Icon;
/**
* This class is used for the extension (in plugin.xml), to define SD as a file's type.
*
* @author Shahar Ariel
*/
public class SdFileType extends LanguageFileType {
public static final SdFileType INSTANCE = new SdFileType();
private SdFileType() {
super(SdLanguage.INSTANCE);
}
@Override
public String getName() {
return "Sd File";
}
@Override
public String getDescription() {
return "A Vespa schema file";
}
@Override
public String getDefaultExtension() {
return "sd";
}
@Override
public Icon getIcon() {
return SdIcons.FILE;
}
}
|