Exemple #1
0
        public static TooltipInformation Create(DNode dn, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1)
        {
            var markupGen = new TooltipMarkupGen(st);

            var tti = new TooltipInformation {
                SignatureMarkup = markupGen.GenTooltipSignature(dn, templateParamCompletion, currentMethodParam)
            };

            CreateTooltipBody(markupGen, dn, tti);

            return(tti);
        }
Exemple #2
0
		static void CreateTooltipBody(TooltipMarkupGen markupGen, DNode dn, TooltipInformation tti)
		{
			string summary;
			Dictionary<string,string> categories;

			markupGen.GenToolTipBody (dn, out summary, out categories);

			tti.SummaryMarkup = summary;
			if (categories != null)
				foreach (var kv in categories)
					tti.AddCategory (kv.Key, kv.Value);
		}
Exemple #3
0
		public static TooltipInformation Create(DNode dn, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1)
		{
			var markupGen = new TooltipMarkupGen (st);

			var tti = new TooltipInformation { 
				SignatureMarkup = markupGen.GenTooltipSignature(dn, templateParamCompletion, currentMethodParam)
			};

			CreateTooltipBody (markupGen, dn, tti);

			return tti;
		}
Exemple #4
0
		//TODO: Für semantisches Highlighting den TypeRefFinder benutzen und einfach pauschal alle Ids entsprechend highlighten
		public static TooltipInformation Create(AbstractType t, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1)
		{
			var markupGen = new TooltipMarkupGen (st);

			var tti = new TooltipInformation { 
				SignatureMarkup = markupGen.GenTooltipSignature (t, templateParamCompletion, currentMethodParam)
			};

			var ds = t as DSymbol;
			DNode n;
			if (ds != null && (n = ds.Definition) != null)
				CreateTooltipBody (markupGen, n, tti);

			return tti;
		}
Exemple #5
0
        static void CreateTooltipBody(TooltipMarkupGen markupGen, DNode dn, TooltipInformation tti)
        {
            string summary;
            Dictionary <string, string> categories;

            markupGen.GenToolTipBody(dn, out summary, out categories);

            tti.SummaryMarkup = summary;
            if (categories != null)
            {
                foreach (var kv in categories)
                {
                    tti.AddCategory(kv.Key, kv.Value);
                }
            }
        }
Exemple #6
0
        //TODO: Für semantisches Highlighting den TypeRefFinder benutzen und einfach pauschal alle Ids entsprechend highlighten
        public static TooltipInformation Create(AbstractType t, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1)
        {
            var markupGen = new TooltipMarkupGen(st);

            var tti = new TooltipInformation {
                SignatureMarkup = markupGen.GenTooltipSignature(t, templateParamCompletion, currentMethodParam)
            };

            var   ds = t as DSymbol;
            DNode n;

            if (ds != null && (n = ds.Definition) != null)
            {
                CreateTooltipBody(markupGen, n, tti);
            }

            return(tti);
        }