From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mo DeJong To: sourcenav@sources.redhat.com Subject: Re: private variables, methods, etc. Date: Thu, 05 Jul 2001 18:09:00 -0000 Message-id: References: <3B43CE38.E9373446@omnisig.com> X-SW-Source: 2001-q3/msg00030.html 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