package com.linkedin.intellij.dust;

import com.intellij.openapi.fileTypes.LanguageFileType;
import consulo.dust.icon.DustIconGroup;
import consulo.ui.image.Image;
import org.jetbrains.annotations.NonNls;

import javax.annotation.Nonnull;

/**
 * Created with IntelliJ IDEA.
 * User: yzhang
 * Date: 1/16/13
 * Time: 10:48 AM
 */
public class DustFileType extends LanguageFileType {
  public static final DustFileType INSTANCE = new DustFileType();
  @NonNls public static final String DEFAULT_EXTENSION = "tl";

  private DustFileType() {
    super(DustLanguage.INSTANCE);
  }

  @Override
  @Nonnull
  public String getId() {
    return "Dust";
  }

  @Override
  @Nonnull
  public String getDescription() {
    return "Dust files";
  }

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

  @Nonnull
  @Override
  public Image getIcon() {
    return DustIconGroup.dust_icon();
  }
}

@@ -126,16 +126,55 @@
 nGroup;%0A
+import consulo.localize.LocalizeValue;%0A
 import c
@@ -712,30 +712,37 @@
 ll%0A  public 
-String
+LocalizeValue
  getDescript
@@ -756,24 +756,51 @@
 %0A    return 
+LocalizeValue.localizeTODO(
 %22Dust files%22
@@ -799,16 +799,17 @@
 t files%22
+)
 ;%0A  %7D%0A%0A 

fix compilation