Exemplo n.º 1
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
        {
            IField field = (IField)dataObject;

            label = Ambience.GetString(field, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup);
            if (field.IsPrivate || field.IsInternal)
            {
                label = DomMethodNodeBuilder.FormatPrivate(label);
            }
            icon = ImageService.GetPixbuf(field.StockIcon, Gtk.IconSize.Menu);
        }
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
        {
            IProperty property = (IProperty)dataObject;

            label = Ambience.GetString(property, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.ReturnTypesLast);
            if (property.IsPrivate || property.IsInternal)
            {
                label = DomMethodNodeBuilder.FormatPrivate(label);
            }
            icon = ImageService.GetPixbuf(property.StockIcon, Gtk.IconSize.Menu);
        }
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
        {
            var evt      = (IUnresolvedEvent)dataObject;
            var resolved = Resolve(treeBuilder, evt);

            label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat);
            if (evt.IsPrivate || evt.IsInternal)
            {
                label = DomMethodNodeBuilder.FormatPrivate(label);
            }
            icon = ImageService.GetPixbuf(evt.GetStockIcon(), Gtk.IconSize.Menu);
        }
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
        {
            var type     = (IUnresolvedTypeDefinition)dataObject;
            var resolved = Resolve(treeBuilder, type);

            label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.UseNETTypeNames);
            if (type.IsPrivate)
            {
                label = DomMethodNodeBuilder.FormatPrivate(label);
            }
            icon = ImageService.GetPixbuf(type.GetStockIcon(), Gtk.IconSize.Menu);
        }
Exemplo n.º 5
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
        {
            var method   = (IUnresolvedMethod)dataObject;
            var dt       = new DefaultResolvedTypeDefinition(GetContext(treeBuilder), method.DeclaringTypeDefinition);
            var resolved = (DefaultResolvedMethod)Resolve(treeBuilder, method, dt);

            label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat);

            if (method.IsPrivate || method.IsInternal)
            {
                label = DomMethodNodeBuilder.FormatPrivate(label);
            }

            icon = ImageService.GetPixbuf(resolved.GetStockIcon(), Gtk.IconSize.Menu);
        }
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, NodeInfo nodeInfo)
        {
            var property = (IUnresolvedProperty)dataObject;

            try {
                var resolved = Resolve(treeBuilder, property);
                nodeInfo.Label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat);
            } catch (Exception) {
                nodeInfo.Label = property.Name;
            }
            if (property.IsPrivate || property.IsInternal)
            {
                nodeInfo.Label = DomMethodNodeBuilder.FormatPrivate(nodeInfo.Label);
            }
            nodeInfo.Icon = Context.GetIcon(property.GetStockIcon());
        }
Exemplo n.º 7
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, NodeInfo nodeInfo)
        {
            var type = (IUnresolvedTypeDefinition)dataObject;

            try {
                var resolved = Resolve(treeBuilder, type);
                nodeInfo.Label = MonoDevelop.Ide.TypeSystem.Ambience.EscapeText(Ambience.ConvertType(resolved));
            } catch (Exception) {
                nodeInfo.Label = type.Name;
            }
            if (type.IsPrivate)
            {
                nodeInfo.Label = DomMethodNodeBuilder.FormatPrivate(nodeInfo.Label);
            }
            nodeInfo.Icon = Context.GetIcon(type.GetStockIcon());
        }
Exemplo n.º 8
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, NodeInfo nodeInfo)
        {
            var evt = (IUnresolvedEvent)dataObject;

            try {
                var resolved = Resolve(treeBuilder, evt);
                nodeInfo.Label = MonoDevelop.Ide.TypeSystem.Ambience.EscapeText(Ambience.ConvertSymbol(resolved));
            } catch (Exception) {
                nodeInfo.Label = evt.Name;
            }
            if (evt.IsPrivate || evt.IsInternal)
            {
                nodeInfo.Label = DomMethodNodeBuilder.FormatPrivate(nodeInfo.Label);
            }
            nodeInfo.Icon = Context.GetIcon(evt.GetStockIcon());
        }
Exemplo n.º 9
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, NodeInfo nodeInfo)
        {
            var type = (IUnresolvedTypeDefinition)dataObject;

            try {
                var resolved = Resolve(treeBuilder, type);
                nodeInfo.Label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.UseNETTypeNames);
            } catch (Exception) {
                nodeInfo.Label = type.Name;
            }
            if (type.IsPrivate)
            {
                nodeInfo.Label = DomMethodNodeBuilder.FormatPrivate(nodeInfo.Label);
            }
            nodeInfo.Icon = Context.GetIcon(type.GetStockIcon());
        }
Exemplo n.º 10
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon)
        {
            var property = (IUnresolvedProperty)dataObject;

            try {
                var resolved = Resolve(treeBuilder, property);
                label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat);
            } catch (Exception) {
                label = property.Name;
            }
            if (property.IsPrivate || property.IsInternal)
            {
                label = DomMethodNodeBuilder.FormatPrivate(label);
            }
            icon = ImageService.GetPixbuf(property.GetStockIcon(), Gtk.IconSize.Menu);
        }
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, NodeInfo nodeInfo)
        {
            var method   = (IUnresolvedMethod)dataObject;
            var dt       = new DefaultResolvedTypeDefinition(GetContext(treeBuilder), method.DeclaringTypeDefinition);
            var resolved = (DefaultResolvedMethod)Resolve(treeBuilder, method, dt);

            try {
                nodeInfo.Label = Ambience.GetString(resolved, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat);
            } catch (Exception) {
                nodeInfo.Label = method.Name;
            }

            if (method.IsPrivate || method.IsInternal)
            {
                nodeInfo.Label = DomMethodNodeBuilder.FormatPrivate(nodeInfo.Label);
            }

            nodeInfo.Icon = Context.GetIcon(resolved.GetStockIcon());
        }
Exemplo n.º 12
0
        public override void BuildNode(ITreeBuilder treeBuilder, object dataObject, NodeInfo nodeInfo)
        {
            var method   = (IUnresolvedMethod)dataObject;
            var dt       = new DefaultResolvedTypeDefinition(GetContext(treeBuilder), method.DeclaringTypeDefinition);
            var resolved = (DefaultResolvedMethod)Resolve(treeBuilder, method, dt);
            var ambience = new CSharpAmbience();

            try {
                nodeInfo.Label = MonoDevelop.Ide.TypeSystem.Ambience.EscapeText(ambience.ConvertSymbol(resolved));
            } catch (Exception) {
                nodeInfo.Label = method.Name;
            }

            if (method.IsPrivate || method.IsInternal)
            {
                nodeInfo.Label = DomMethodNodeBuilder.FormatPrivate(nodeInfo.Label);
            }

            nodeInfo.Icon = Context.GetIcon(resolved.GetStockIcon());
        }