From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.21.200 with SMTP id r48mr3873415yhr.22.1414626536495; Wed, 29 Oct 2014 16:48:56 -0700 (PDT) X-Received: by 10.50.97.73 with SMTP id dy9mr516901igb.15.1414626536402; Wed, 29 Oct 2014 16:48:56 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!u7no1065824qaz.1!news-out.google.com!ks2ni4879igb.0!nntp.google.com!h15no1843733igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 29 Oct 2014 16:48:55 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <2e8f1414-5556-465f-a7bc-f1513ec973aa@googlegroups.com> <85y4s08x0d.fsf@stephe-leake.org> <85egtqwnte.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: IDE's that support ADA From: Adam Beneschan Injection-Date: Wed, 29 Oct 2014 23:48:56 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3450 X-Received-Body-CRC: 3027270542 Xref: number.nntp.giganews.com comp.lang.ada:190217 Date: 2014-10-29T16:48:55-07:00 List-Id: On Wednesday, October 29, 2014 4:28:59 PM UTC-7, Peter Chapin wrote: > Well Eclipse has a 'change method signature' refactoring option. It=20 > changes the signature of a method and all its overrides. It can also keep= =20 > the original method and have it delegate to the new method (and mark the= =20 > original as depreciated). >=20 > > - something else? >=20 > I'm looking at the refactor menu in Eclipse... there is an option to=20 > convert a local variable of a method into a field of the class. So in Ada= =20 > terms that would be promoting a local variable of a primitive subprogram= =20 > to a component of the tagged type. >=20 > Eclipse also has refactorings to move methods from super classes to=20 > subclasses (or vice-versa). In Ada terms we are talking about moving=20 > subprograms from one package to another, with suitable renamings I guess. >=20 > There is also an extract interface refactoring that examines a class and= =20 > generates an interface based on the methods it finds there. >=20 > There are other refactorings too, but you get the idea. Of course we are= =20 > talking about Java here so the ones I mentioned are all OOP specific. One= =20 > might be able to come up with other, Ada specific, possibilities. One thing I've sometimes found useful in Eclipse is Extract Method, where I= can highlight a part of a method (function) and it will figure out how to = take the highlighted part and turn it into a separate method with a name it= prompts me for. It does a reasonable job of guessing what parameters I'd = like to pass to it, and what function result I want, if any. Something lik= e this is very difficult to get right all the time, and I wish it gave me m= ore options to customize when it guesses wrong. At that point, all I can d= o is cancel the operation and then do the refactoring by hand. But even if= it works, say, 60% of the time, it really does help in those 60% of cases = and it's not much of an extra burden to try it in the other 40%. -- Adam