package org.coffeebrew.file;

import com.intellij.openapi.fileTypes.LanguageFileType;
import consulo.coffeescript.icon.CoffeeScriptIconGroup;
import consulo.ui.image.Image;
import org.coffeebrew.CoffeeScriptLanguage;
import org.jetbrains.annotations.NonNls;

import javax.annotation.Nonnull;

/**
 * CoffeeScript file properties
 *
 * @author Michael kessler
 * @since 0.1.0
 */
public class CoffeeScriptFileType extends LanguageFileType
{
	public static final CoffeeScriptFileType INSTANCE = new CoffeeScriptFileType();

	@NonNls
	public static final String DEFAULT_EXTENSION = "coffee";

	private CoffeeScriptFileType()
	{
		super(CoffeeScriptLanguage.INSTANCE);
	}

	@Nonnull
	@NonNls
	public String getId()
	{
		return "CoffeeScript";
	}

	@NonNls
	@Nonnull
	public String getDescription()
	{
		return "CoffeeScript Files";
	}

	@Nonnull
	@NonNls
	public String getDefaultExtension()
	{
		return DEFAULT_EXTENSION;
	}

	@Nonnull
	public Image getIcon()
	{
		return CoffeeScriptIconGroup.coffee_script();
	}
}

package org.coffeebrew.file;

import com.intellij.openapi.fileTypes.LanguageFileType;
import consulo.coffeescript.icon.CoffeeScriptIconGroup;
import consulo.localize.LocalizeValue;
import consulo.ui.image.Image;
import org.coffeebrew.CoffeeScriptLanguage;
import org.jetbrains.annotations.NonNls;

import javax.annotation.Nonnull;

/**
 * CoffeeScript file properties
 *
 * @author Michael kessler
 * @since 0.1.0
 */
public class CoffeeScriptFileType extends LanguageFileType
{
	public static final CoffeeScriptFileType INSTANCE = new CoffeeScriptFileType();

	@NonNls
	public static final String DEFAULT_EXTENSION = "coffee";

	private CoffeeScriptFileType()
	{
		super(CoffeeScriptLanguage.INSTANCE);
	}

	@Nonnull
	@NonNls
	public String getId()
	{
		return "CoffeeScript";
	}

	@NonNls
	@Nonnull
	public LocalizeValue getDescription()
	{
		return LocalizeValue.localizeTODO("CoffeeScript Files");
	}

	@Nonnull
	@NonNls
	public String getDefaultExtension()
	{
		return DEFAULT_EXTENSION;
	}

	@Nonnull
	public Image getIcon()
	{
		return CoffeeScriptIconGroup.coffee_script();
	}
}

fix compilation