Protected
Readonly
contributionProtected
Readonly
onReturn a default file icon for the current icon theme.
Return a default folder icon for the current icon theme.
Protected
affectsProtected
findOptional
method: "getIcon" | "getName" | "getLongName" | "getDetails"Get details from the list of available LabelProviderContribution for the given element.
the details Can be used to supplement getName in contexts that allow both a primary display field and extra detail.
Get the icon class from the list of available LabelProviderContribution for the given element.
the icon class
Get a long name from the list of available LabelProviderContribution for the given element.
the long name
Get a short name from the list of available LabelProviderContribution for the given element.
the short name
Protected
handle
The LabelProvider determines how elements/nodes are displayed in the workbench. For any element, it can determine a short label, a long label and an icon. The LabelProvider is to be used in lists, trees and tables, but also view specific locations like headers. The common LabelProvider can be extended/adapted via LabelProviderContributions. For every element, the {@links LabelProvider} will determine the LabelProviderContribution with the hightest priority and delegate to it. Theia registers default LabelProviderContribution for common types, e.g. the DefaultUriLabelProviderContribution for elements that have a URI. Using the LabelProvider across the workbench ensures a common look and feel for elements across multiple views. To adapt the way how specific elements/nodes are rendered, use a LabelProviderContribution rather than adapting or sub classing the LabelProvider. This way, your adaptation is applied to all views in Theia that use the LabelProvider