From 0758300e1350d024ec8e2d3e2299b892115e92c2 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 28 Mar 2011 18:05:13 +0200 Subject: [PATCH] fix typo --- .../lang-api/src/com/intellij/psi/impl/ElementBase.java | 8 ++++---- .../openapi/fileTypes/impl/NativeFileIconProvider.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/lang-api/src/com/intellij/psi/impl/ElementBase.java b/platform/lang-api/src/com/intellij/psi/impl/ElementBase.java index 99f6fc642074..3aabf8906f7d 100644 --- a/platform/lang-api/src/com/intellij/psi/impl/ElementBase.java +++ b/platform/lang-api/src/com/intellij/psi/impl/ElementBase.java @@ -59,8 +59,8 @@ public abstract class ElementBase extends UserDataHolderBase implements Iconable }; private TIntObjectHashMap 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; } diff --git a/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java b/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java index 2dfaaccb732f..5eac40bb93e6 100644 --- a/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java +++ b/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java @@ -68,7 +68,7 @@ public class NativeFileIconProvider implements FileIconProvider { if (icon != null) { return icon; } - return new DeferredIconImpl(ElementBase.ICON_PLACHOLDER, file, false, new Function() { + return new DeferredIconImpl(ElementBase.ICON_PLACEHOLDER, file, false, new Function() { public Icon fun(VirtualFile virtualFile) { final File f = new File(filePath); if (!f.exists()) {