Skip to content

Commit

Permalink
bug fixed #13 : Worker exited due to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Mar 8, 2016
1 parent a2fe87b commit 0bf27ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<p>0.1.7</p>
<ul>
<li> [bug] #10 - Plugin crashes on latest Idea 14 with JDK 6 </li>
<li> [bug] #13 - Worker exited due to exception </li>
</ul>
<br>
<p>0.1.6</p>
Expand Down
6 changes: 3 additions & 3 deletions src/org/zkoss/zkidea/lang/ZulIconProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,8 +22,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
* @author by jumperchen
*/
Expand All @@ -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;
}
Expand Down

0 comments on commit 0bf27ae

Please sign in to comment.