[MonoDevelop] Re: MonoDoc and jumping to declaration
Jacob Ilsø Christensen
jacobilsoe at gmail.com
Mon May 23 11:02:42 EDT 2005
On 5/23/05, Lluis Sanchez <lluis at ximian.com> wrote:
> On dl, 2005-05-23 at 12:14 +0200, Jacob Ilsø Christensen wrote:
> > Hi.
> >
> > What Monodoc service it that?
>
> MonoDevelop.Services.MonodocService (in the MonoDevelop.Base assembly).
>
Ok. Will have a look at that.
> > From what I have seen in the code, a
> > string is just returned now which is hardcoded to "T:thetypename".
> > What I would like to do is to move this functionality to the type
> > itself, since it is the IProperty that knows that a P: should be
> > prepended and likewise for the other members.
>
> No, this is not something that IProperty knows, because "P:" and the way
> how help URLs are built is specific to the MonoDoc help system.
>
> We should have a new method in MonodocService (for example, ShowHelp)
> which takes as parameter a ISourceCodeElement and displays the help page
> for that element. That method would check the real type of the element
> and would build the correct URL for it.
Yes. I can see the issue now. The only thing I have against it is that
this would result in code like:
if (sourcCodeElement is IProperty) {
return "P:" + sourceCodeElement.FullyQualifiedName;
}
etc for each interface. What do you think about this?
> The code in SourceEditorView that displays the HelpViewer window should
> be moved to MonodocService.
>
Ok. I'll restructure things.
> > Is there some
> > functionality I have not found?
> >
> > /Jacob
>
> > >
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
/Jacob
More information about the Monodevelop-list
mailing list