public override string[] GetSupportedTaskNames() { if (_supportedTaskNames == null) { // Collect custom task names from the generator implementations (e.g. name of // a dedicated task for generating preview images for 3ds files) var supportedTaskNames = PreviewImageGenerator.GetSupportedCustomTaskNames().ToList(); // extend the list with the default task name supportedTaskNames.Add(DefaultPreviewGeneratorTaskName); supportedTaskNames.Sort(); _supportedTaskNames = supportedTaskNames.Distinct().ToArray(); } return(_supportedTaskNames); }
public override bool IsContentSupported(STORAGE.Node content) { return(PreviewImageGenerator.IsSupportedExtension(ContentNamingProvider.GetFileExtension(content.Name))); }
public override string GetPreviewGeneratorTaskTitle(string contentPath) { var ext = Path.GetExtension(STORAGE.RepositoryPath.GetFileName(contentPath)); return(PreviewImageGenerator.GetTaskTitleByFileNameExtension(ext) ?? DefaultPreviewGeneratorTaskTitle); }