compilation fix
authorEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>
Wed, 3 Mar 2010 18:32:23 +0000 (21:32 +0300)
committerEugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com>
Wed, 3 Mar 2010 18:32:23 +0000 (21:32 +0300)
xml/impl/src/com/intellij/codeInsight/template/XmlZenCodingTemplate.java

index 7db36391fe1ecff09de282a1f5cc6c539417f681..aba89778bda3a60f0ae820dbda0b4c5be5ab4aca 100644 (file)
@@ -15,6 +15,7 @@
  */
 package com.intellij.codeInsight.template;
 
+import com.intellij.application.options.editor.WebEditorOptions;
 import com.intellij.codeInsight.template.impl.TemplateImpl;
 import com.intellij.lang.xml.XMLLanguage;
 import com.intellij.openapi.diagnostic.Logger;
@@ -294,8 +295,8 @@ public class XmlZenCodingTemplate implements CustomLiveTemplate {
   }
 
   public String computeTemplateKey(@NotNull CustomTemplateCallback callback) {
-    ZenCodingSettings settings = ZenCodingSettings.getInstance();
-    if (!settings.ENABLED) {
+    WebEditorOptions webEditorOptions = WebEditorOptions.getInstance();
+    if (!webEditorOptions.isZenCodingEnabled()) {
       return null;
     }
     PsiFile file = callback.getFile();