dom icons provided via @Presentation: take 2

This commit is contained in:
Dmitry Avdeev
2011-03-15 12:32:06 +03:00
parent 9d72fb2a6c
commit 2a7cb53df9
2 changed files with 3 additions and 2 deletions
@@ -28,6 +28,7 @@ import javax.swing.*;
*/
public class DefaultDomTargetIconProvider extends DomIconProvider implements DumbAware {
public Icon getIcon(@NotNull DomElement element, int flags) {
return ElementPresentationManager.getIconOld(element);
Icon icon = element.getPresentation().getIcon();
return icon == null ? ElementPresentationManager.getIconOld(element) : icon;
}
}
@@ -541,7 +541,7 @@ public abstract class DomInvocationHandler<T extends AbstractDomChildDescription
}
public Icon getIcon() {
return ElementPresentationManager.getIcon(getProxy());
return ElementPresentationManager.getIconOld(getProxy());
}
};
}