package com.jetbrains.rest;

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

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * User : catherine
 *
 * file type for restructured text files
 */
public class RestFileType extends LanguageFileType {
  public static final RestFileType INSTANCE = new RestFileType();
  @NonNls public static final String DEFAULT_EXTENSION = "rst";
  @NonNls private static final String NAME = "ReST";
  @NonNls private static final String DESCRIPTION = "reStructuredText files";

  private RestFileType() {
    super(RestLanguage.INSTANCE);
  }

  @Nonnull
  public String getId() {
    return NAME;
  }

  @Nonnull
  public String getDescription() {
    return DESCRIPTION;
  }

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

  @Nullable
  public Image getIcon() {
    return ReStructuredTextIconGroup.rst();
  }
}


@@ -78,16 +78,55 @@
 leType;%0A
+import consulo.localize.LocalizeValue;%0A
 import c
@@ -215,49 +215,8 @@
 age;
-%0Aimport org.jetbrains.annotations.NonNls;
 %0A%0Aim
@@ -474,24 +474,16 @@
 pe();%0A  
-@NonNls 
 public s
@@ -531,139 +531,8 @@
 st%22;
-%0A  @NonNls private static final String NAME = %22ReST%22;%0A  @NonNls private static final String DESCRIPTION = %22reStructuredText files%22;
 %0A%0A  
@@ -647,12 +647,14 @@
 urn 
-NAME
+%22ReST%22
 ;%0A  
@@ -672,30 +672,37 @@
 ll%0A  public 
-String
+LocalizeValue
  getDescript
@@ -724,19 +724,60 @@
 urn 
-DESCRIPTION
+LocalizeValue.localizeTODO(%22reStructuredText files%22)
 ;%0A  

fix localize