mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
dom icons provided via @Presentation: take 2
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user