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