Java 类com.intellij.util.VisibilityIcons 实例源码

项目:intellij-ce-playground    文件:MemberSelectionTable.java   
@Override
protected void setVisibilityIcon(MemberInfo memberInfo, RowIcon icon) {
  PsiMember member = memberInfo.getMember();
  PsiModifierList modifiers = member != null ? member.getModifierList() : null;
  if (modifiers != null) {
    VisibilityIcons.setVisibilityIcon(modifiers, icon);
  }
  else {
    icon.setIcon(IconUtil.getEmptyIcon(true), VISIBILITY_ICON_POSITION);
  }
}
项目:intellij-ce-playground    文件:GrTypeDefinitionImpl.java   
@Nullable
@Override
protected Icon getElementIcon(@IconFlags int flags) {
  Icon icon = getIconInner();
  final boolean isLocked = (flags & ICON_FLAG_READ_STATUS) != 0 && !isWritable();
  RowIcon rowIcon = createLayeredIcon(this, icon, ElementPresentationUtil.getFlags(this, isLocked) | getFlagsInner());
  if ((flags & ICON_FLAG_VISIBILITY) != 0) {
    VisibilityIcons.setVisibilityIcon(getModifierList(), rowIcon);
  }
  return rowIcon;
}
项目:intellij-ce-playground    文件:GrMemberSelectionTable.java   
@Override
protected void setVisibilityIcon(GrMemberInfo memberInfo, RowIcon icon) {
  PsiMember member = memberInfo.getMember();
  PsiModifierList modifiers = member != null ? member.getModifierList() : null;
  if (modifiers != null) {
    VisibilityIcons.setVisibilityIcon(modifiers, icon);
  }
  else {
    icon.setIcon(IconUtil.getEmptyIcon(true), VISIBILITY_ICON_POSITION);
  }
}
项目:tools-idea    文件:MemberSelectionTable.java   
@Override
protected void setVisibilityIcon(MemberInfo memberInfo, RowIcon icon) {
  PsiMember member = memberInfo.getMember();
  PsiModifierList modifiers = member != null ? member.getModifierList() : null;
  if (modifiers != null) {
    VisibilityIcons.setVisibilityIcon(modifiers, icon);
  }
  else {
    icon.setIcon(IconUtil.getEmptyIcon(true), VISIBILITY_ICON_POSITION);
  }
}
项目:tools-idea    文件:GrTypeDefinitionImpl.java   
@Nullable
public Icon getIcon(int flags) {
  Icon icon = getIconInner();
  final boolean isLocked = (flags & ICON_FLAG_READ_STATUS) != 0 && !isWritable();
  RowIcon rowIcon = createLayeredIcon(this, icon, ElementPresentationUtil.getFlags(this, isLocked) | getFlagsInner());
  if ((flags & ICON_FLAG_VISIBILITY) != 0) {
    VisibilityIcons.setVisibilityIcon(getModifierList(), rowIcon);
  }
  return rowIcon;
}
项目:consulo-java    文件:MemberSelectionTable.java   
@Override
protected void setVisibilityIcon(MemberInfo memberInfo, RowIcon icon) {
  PsiMember member = memberInfo.getMember();
  PsiModifierList modifiers = member != null ? member.getModifierList() : null;
  if (modifiers != null) {
    VisibilityIcons.setVisibilityIcon(modifiers, icon);
  }
  else {
    icon.setIcon(IconUtil.getEmptyIcon(true), VISIBILITY_ICON_POSITION);
  }
}
项目:intellij-ce-playground    文件:ElementPresentationUtil.java   
public static Icon addVisibilityIcon(final PsiModifierListOwner element, final int flags, final RowIcon baseIcon) {
  if ((flags & Iconable.ICON_FLAG_VISIBILITY) != 0) {
    VisibilityIcons.setVisibilityIcon(element.getModifierList(), baseIcon);
  }
  return baseIcon;
}
项目:tools-idea    文件:ElementPresentationUtil.java   
public static Icon addVisibilityIcon(final PsiModifierListOwner element, final int flags, final RowIcon baseIcon) {
  if ((flags & Iconable.ICON_FLAG_VISIBILITY) != 0) {
    VisibilityIcons.setVisibilityIcon(element.getModifierList(), baseIcon);
  }
  return baseIcon;
}