This commit is contained in:
peter
2011-03-28 19:13:43 +02:00
parent d020591835
commit 0758300e13
2 changed files with 5 additions and 5 deletions
@@ -59,8 +59,8 @@ public abstract class ElementBase extends UserDataHolderBase implements Iconable
};
private TIntObjectHashMap<Icon> myBaseIcon;
private static final Icon VISIBILITY_ICON_PLACHOLDER = new EmptyIcon(Icons.PUBLIC_ICON);
public static final Icon ICON_PLACHOLDER = IconLoader.getIcon("/nodes/nodePlaceholder.png");
private static final Icon VISIBILITY_ICON_PLACEHOLDER = new EmptyIcon(Icons.PUBLIC_ICON);
public static final Icon ICON_PLACEHOLDER = IconLoader.getIcon("/nodes/nodePlaceholder.png");
@Nullable
public Icon getIcon(int flags) {
@@ -132,7 +132,7 @@ public abstract class ElementBase extends UserDataHolderBase implements Iconable
}
}
}
return ICON_PLACHOLDER;
return ICON_PLACEHOLDER;
}
public static boolean isNativeFileType(FileType fileType) {
@@ -144,7 +144,7 @@ public abstract class ElementBase extends UserDataHolderBase implements Iconable
if ((flags & ICON_FLAG_VISIBILITY) > 0) {
RowIcon rowIcon = new RowIcon(2);
rowIcon.setIcon(icon, 0);
rowIcon.setIcon(VISIBILITY_ICON_PLACHOLDER, 1);
rowIcon.setIcon(VISIBILITY_ICON_PLACEHOLDER, 1);
result = rowIcon;
}
@@ -68,7 +68,7 @@ public class NativeFileIconProvider implements FileIconProvider {
if (icon != null) {
return icon;
}
return new DeferredIconImpl<VirtualFile>(ElementBase.ICON_PLACHOLDER, file, false, new Function<VirtualFile, Icon>() {
return new DeferredIconImpl<VirtualFile>(ElementBase.ICON_PLACEHOLDER, file, false, new Function<VirtualFile, Icon>() {
public Icon fun(VirtualFile virtualFile) {
final File f = new File(filePath);
if (!f.exists()) {