Content Pipeline:
- Added AvailableImporters property to ImporterManager - Choosing importers via dropdown list in a propertyGrid is now possible.
This commit is contained in:
parent
3f6dd9b9d0
commit
0406947b56
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,5 +87,13 @@ namespace ANX.Framework.Content.Pipeline.Tasks
|
||||
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
public IEnumerable<KeyValuePair<string, Type>> AvailableImporters
|
||||
{
|
||||
get
|
||||
{
|
||||
return importerTypes;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user