aboutsummaryrefslogtreecommitdiffstats
path: root/integration/intellij/src/main/java/ai/vespa/intellij/schema/psi/SdFile.java
blob: 7a7df9913dd09dbeda15146362c495d00d790914 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.intellij.schema.psi;

import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import ai.vespa.intellij.schema.SdFileType;
import ai.vespa.intellij.schema.SdLanguage;

/**
 * An SD file.
 *
 * @author Shahar Ariel
 */
public class SdFile extends PsiFileBase {
    
    public SdFile(FileViewProvider viewProvider) {
        super(viewProvider, SdLanguage.INSTANCE);
    }
    
    @Override
    public FileType getFileType() {
        return SdFileType.INSTANCE;
    }
    
    @Override
    public String toString() {
        return "Sd file '" + getName() + "'";
    }

}