From 0bf27ae3fe215f7b87edcd9a57c0986f1582fb74 Mon Sep 17 00:00:00 2001 From: Jumper Chen Date: Tue, 8 Mar 2016 18:17:10 +0800 Subject: [PATCH] bug fixed #13 : Worker exited due to exception --- META-INF/plugin.xml | 1 + src/org/zkoss/zkidea/lang/ZulIconProvider.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/META-INF/plugin.xml b/META-INF/plugin.xml index b674dd5..4a008b3 100644 --- a/META-INF/plugin.xml +++ b/META-INF/plugin.xml @@ -15,6 +15,7 @@

0.1.7


0.1.6

diff --git a/src/org/zkoss/zkidea/lang/ZulIconProvider.java b/src/org/zkoss/zkidea/lang/ZulIconProvider.java index c37e435..7641e8c 100644 --- a/src/org/zkoss/zkidea/lang/ZulIconProvider.java +++ b/src/org/zkoss/zkidea/lang/ZulIconProvider.java @@ -12,6 +12,8 @@ */ package org.zkoss.zkidea.lang; +import javax.swing.*; + import com.intellij.ide.FileIconProvider; import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.Project; @@ -20,8 +22,6 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import javax.swing.*; - /** * @author by jumperchen */ @@ -30,7 +30,7 @@ public class ZulIconProvider implements DumbAware, FileIconProvider { @Override public Icon getIcon(@NotNull VirtualFile file, @Iconable.IconFlags int flags, @Nullable Project project) { if(project == null) return null; - if (file.getExtension().equalsIgnoreCase(ZulFileType.EXTENSION)) + if (ZulFileType.EXTENSION.equalsIgnoreCase(file.getExtension())) return ZulIcons.FILE; return null; }