Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] DocumentationHover question

hello all -

  i was looking (yes, i'm peaking into a lot of different cookie jars right now) at DocumentHovers and wanted to know if it was possible to increase the hover region that is calculated, or perhaps i am looking at the wrong thing all together. let me give an example...

  say i have the following subroutine declaration:

=item B<method>

this is a contrived method

=cut

sub method
{
    my $self = shift;

    Dot::method();
    Arrow->method();

    print "hello\n";
}

  if i let the cursor sit over the 'method' that is defined as part of the Dot::method call, the getInfo(String content) method is called on my IScriptDocumentationProvider implementation, and 'method' is passed to it, but that does not seem to be useful. i tried this out w/ the ruby plugin and it appears that getInfo(IMember element, boolean lookIntoParents, boolean lookIntoExternal) method is being called instead of getInfo(String content) like in my case.

  could someone shed some insight into this? at the moment my source parser doesn't look at the contents of subroutines, but it does build MethodDeclarations for them, and they are in the ast, so i would think that if i let the cursor sit in the 'sub method' line, that should cause the getInfo(IMember...) method to be called.

  i'd like to be able to provide hovers that show the docs for all the 'method' methods (and have it be the correct documentation for each), as well as providing hovers for the builtins (shift and print) - but that's long term. i'll be happy to just get the basics going.

  thx!

--
-jae

Back to the top