Content Pipeline:

- Added AvailableImporters property to ImporterManager
- Choosing importers via dropdown list in a propertyGrid is now possible.
This commit is contained in:
SND\eagleeyestudios_cp 2012-10-05 11:19:08 +00:00 committed by Konstantin Koch
parent 3f6dd9b9d0
commit 0406947b56
2 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Specialized;
using System.Linq;
using System.ComponentModel;
namespace ANX.Framework.Content.Pipeline.Tasks
@ -22,7 +23,8 @@ namespace ANX.Framework.Content.Pipeline.Tasks
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
return new StandardValuesCollection(new StringCollection()); //TODO: Implement correct call to get available Importers
var iManager = new ImporterManager(); //<- No, thats not a new apple product :-)
return new StandardValuesCollection(iManager.AvailableImporters.Select(availableImporter => availableImporter.Key).ToArray()); //TODO: Implement correct call to get available Importers
}
}
}

View File

@ -87,5 +87,13 @@ namespace ANX.Framework.Content.Pipeline.Tasks
return String.Empty;
}
public IEnumerable<KeyValuePair<string, Type>> AvailableImporters
{
get
{
return importerTypes;
}
}
}
}