private void CreateContextMenuActions() { if (AssetTool.IsSupportedTextureFileFormat(_file.Extension)) { var command = _createTextureAssetCommandFactory.Create(_file); ContextMenuItems.Add(new ContextMenuItem("Create texture asset", command)); } if (AssetTool.CanCreateSpriteAssetFromFile(_file.Path)) { var command = _createSpriteAssetCommandFactory.Create(_file); ContextMenuItems.Add(new ContextMenuItem("Create sprite asset", command)); } if (AssetTool.IsSupportedSoundFileFormat(_file.Extension)) { var command = _createSoundAssetCommandFactory.Create(_file); ContextMenuItems.Add(new ContextMenuItem("Create sound asset", command)); } }