public Control CreatePathWidget(int index)
        {
            PathEntry[] path = CurrentPath;
            if (path == null || index < 0 || index >= path.Length)
            {
                return(null);
            }
            var tag    = path [index].Tag;
            var window = new DropDownBoxListWindow(tag == null ? (DropDownBoxListWindow.IListDataProvider) new CompilationUnitDataProvider(Editor, DocumentContext) : new DataProvider(this, tag));

            window.FixedRowHeight = 22;
            window.MaxVisibleRows = 14;
            window.SelectItem(path [index].Tag);
            return(window);
        }
Exemplo n.º 2
0
        public Widget CreatePathWidget(int index)
        {
            var path = CurrentPath;

            if (null == path || index < 0 || path.Length <= index)
            {
                return(null);
            }

            var tag    = path[index].Tag;
            var window = new DropDownBoxListWindow(tag == null ? (MonoDevelop.Components.DropDownBoxListWindow.IListDataProvider) new CompilationUnitDataProvider(Document) : new EditorPathbarProvider(Document, tag));

            window.SelectItem(tag);

            return(window);
        }
Exemplo n.º 3
0
        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 D_Parser.Dom.IBlockNode) || (tag is DEnumValue) || (tag is NoSelectionCustomNode)))
            {
                return(null);
            }
            provider = new EditorPathbarProvider(Document, tag);

            var window = new DropDownBoxListWindow(provider);

            window.SelectItem(tag);
            return(window);
        }