private variables, methods, etc.
Mo DeJong
mdejong@cygnus.com
Thu Jul 5 18:09:00 GMT 2001
On Wed, 4 Jul 2001, Celia McInnis wrote:
> Hi:
>
> I really love Source-Navigator - especially the fact that we can extend
> its functionality in many ways without having to change the
> Source-Navigator source code.
>
> Could you consider making more (or maybe even all?) of the methods and
> variables public rather than private?
No, we are not going to do that.
> Recently I needed to be able to access the value of text_current_line
> from the select_current_line method and found it necessary to override
> the whole Make class in order to get it. Seemed a shame to have to
> override 1000+ lines of code (which I'll then have/want to keep in sync
> with redhat upgrades) when all I needed was to stick in one global
> statement...
It sounds like you need a method that will report information about
the currently selected line. That way you can get the data you
need without having to extend the class to do it. Why don't you
spec out what kind of info you need, write a method to provide
that info, and then post a patch implementing that change to
the Make and Grep classes?
cheers
Mo
More information about the Sourcenav
mailing list