示例#1
0
 /*package*/ void updateIcon(SRepository repo) {
   SModule m = myModule.resolve(repo);
   if (m == null) {
     setIcon(IdeIcons.DEFAULT_ICON);
   } else {
     setIcon(IconManager.getIconFor(m));
   }
 }
示例#2
0
 @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);
 }
示例#3
0
 @Override
 public Icon getIcon() {
   if (myNodePointer.resolve(MPSModuleRepository.getInstance()) == null) return null;
   return IconManager.getIconFor(myNodePointer.resolve(MPSModuleRepository.getInstance()));
 }