public Gtk.Widget CreatePathWidget (int index)
{
PathEntry[] path = CurrentPath;
if (path == null || index < 0 || index >= path.Length)
return null;
var tag = path[index].Tag;
DropDownBoxListWindow window = new DropDownBoxListWindow (tag is ICompilationUnit ? (DropDownBoxListWindow.IListDataProvider)new CompilationUnitDataProvider (Document) : new DataProvider (Document, tag, GetAmbience ()));
window.SelectItem (path[index].Tag);
return window;
}