/*
 * Copyright 2011 Evgeniy Polyakov
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jsflsupport;

import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.ui.IconManager;
import org.jetbrains.annotations.NotNull;
import org.jsflsupport.lang.JS16SupportLoader;

import javax.swing.*;

public class JSFLFileType extends LanguageFileType {

    private static final Icon ICON = IconManager.getInstance().getIcon("/org/jsflsupport/icons/jsfl.png", JSFLFileType.class);
    public static final JSFLFileType INSTANCE = new JSFLFileType();

    public JSFLFileType() {
        super(JS16SupportLoader.LANGUAGE_DIALECT);
    }

    @NotNull
    public String getName() {
        return "JSFL";
    }

    @NotNull
    public String getDescription() {
        return "JSFL Files";
    }

    @NotNull
    public String getDefaultExtension() {
        return "jsfl";
    }

    public Icon getIcon() {
        return ICON;
    }
}

@@ -615,16 +615,140 @@
 pport;%0A%0A
+import com.intellij.lang.javascript.JSLanguageDialect;%0Aimport com.intellij.lang.javascript.types.JavaScriptDialectFileType;%0A
 import c
@@ -995,16 +995,53 @@
 ileType 
+implements JavaScriptDialectFileType 
 %7B%0A%0A    p
@@ -1615,11 +1615,148 @@
 N;%0A    %7D
+%0A%0A    @NotNull%0A    @Override%0A    public JSLanguageDialect getDefaultLanguage() %7B%0A        return JS16SupportLoader.LANGUAGE_DIALECT;%0A    %7D
 %0A%7D%0A

Update of JSFLFileType implementation