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

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

Introduction

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

Prototype

public static SimpleTextCellAppearance synthetic(@NotNull final String text, @Nullable final Icon icon) 

Source Link

Usage

From source file:org.mustbe.consulo.dotnet.module.roots.DotNetLibraryOrderEntryTypeProvider.java

License:Apache License

@NotNull
@Override/*from  www  . j a  va  2  s . co  m*/
public CellAppearanceEx getCellAppearance(@NotNull DotNetLibraryOrderEntryImpl dotNetLibraryOrderEntry) {
    ModuleRootLayerImpl moduleRootLayer = dotNetLibraryOrderEntry.getModuleRootLayer();

    DotNetModuleExtension extension = moduleRootLayer.getExtension(DotNetModuleExtension.class);

    ModuleExtensionProviderEP providerEP = extension == null ? null
            : ModuleExtensionProviderEP.findProviderEP(extension.getId());

    return SimpleTextCellAppearance.synthetic(dotNetLibraryOrderEntry.getPresentableName(),
            providerEP == null ? AllIcons.Toolbar.Unknown : providerEP.getIcon());
}

From source file:org.mustbe.consulo.roots.impl.ModuleSourceOrderEntryTypeProvider.java

License:Apache License

@NotNull
@Override/*from w w w.  j ava  2 s  .  com*/
public CellAppearanceEx getCellAppearance(@NotNull ModuleSourceOrderEntryImpl orderEntry) {
    return SimpleTextCellAppearance.synthetic(orderEntry.getPresentableName(), AllIcons.Nodes.Module);
}