mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
21 lines
762 B
C#
21 lines
762 B
C#
using System.ComponentModel.Composition;
|
|
using Microsoft.VisualStudio.ProjectSystem;
|
|
|
|
namespace Cosmos.VS.ProjectSystem
|
|
{
|
|
[Export(typeof(IProjectTreePropertiesProvider))]
|
|
[AppliesTo(ProjectCapability.Cosmos)]
|
|
[Order(Order.OverrideManaged)]
|
|
internal class ProjectTreePropertiesProvider : IProjectTreePropertiesProvider
|
|
{
|
|
public void CalculatePropertyValues(
|
|
IProjectTreeCustomizablePropertyContext propertyContext,
|
|
IProjectTreeCustomizablePropertyValues propertyValues)
|
|
{
|
|
if (propertyValues.Flags.Contains(ProjectTreeFlags.Common.ProjectRoot))
|
|
{
|
|
propertyValues.Icon = CosmosImagesMonikers.ProjectRootIcon.ToProjectSystemType();
|
|
}
|
|
}
|
|
}
|
|
}
|