Example usage for com.intellij.openapi.roots.ui.util SimpleTextCellAppearance SimpleTextCellAppearance

List of usage examples for com.intellij.openapi.roots.ui.util SimpleTextCellAppearance SimpleTextCellAppearance

Introduction

In this page you can find the example usage for com.intellij.openapi.roots.ui.util SimpleTextCellAppearance SimpleTextCellAppearance.

Prototype

public SimpleTextCellAppearance(@NotNull final String text, @Nullable final Icon icon,
            @NotNull final SimpleTextAttributes textAttributes) 

Source Link

Usage

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);
}