/*package*/ void updateIcon(SRepository repo) { SModule m = myModule.resolve(repo); if (m == null) { setIcon(IdeIcons.DEFAULT_ICON); } else { setIcon(IconManager.getIconFor(m)); } }
@Override protected void doUpdatePresentation() { @DisposableCommand SNode node = myNode; if (node == null) { return; } setIcon(IconManager.getIconFor(node)); String addText = calculateAdditionalText(); if (addText != null) { setAdditionalText(addText); } setAutoExpandable(false); }
@Override public Icon getIcon() { if (myNodePointer.resolve(MPSModuleRepository.getInstance()) == null) return null; return IconManager.getIconFor(myNodePointer.resolve(MPSModuleRepository.getInstance())); }