List of usage examples for com.intellij.openapi.roots.ui.util SimpleTextCellAppearance SimpleTextCellAppearance
public SimpleTextCellAppearance(@NotNull final String text, @Nullable final Icon icon, @NotNull final SimpleTextAttributes textAttributes)
From source file:consulo.google.go.module.orderEntry.GoPathOrderEntryTypeEditor.java
License:Apache License
@Nonnull public CellAppearanceEx getCellAppearance(@Nonnull GoPathOrderEntry orderEntry) { return new SimpleTextCellAppearance(orderEntry.getPresentableName(), GoIcons.ICON, SimpleTextAttributes.SYNTHETIC_ATTRIBUTES); }
From source file:org.mustbe.consulo.roots.impl.ModuleExtensionWithSdkOrderEntryTypeProvider.java
License:Apache License
@NotNull @Override// w ww . ja v a2 s . co m public CellAppearanceEx getCellAppearance(@NotNull ModuleExtensionWithSdkOrderEntryImpl orderEntry) { Sdk sdk = orderEntry.getSdk(); return new SimpleTextCellAppearance(orderEntry.getPresentableName(), SdkUtil.getIcon(sdk), sdk == null ? SimpleTextAttributes.ERROR_ATTRIBUTES : SimpleTextAttributes.SYNTHETIC_ATTRIBUTES); }