From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: IDE's that support ADA
Date: Wed, 29 Oct 2014 16:48:55 -0700 (PDT)
Date: 2014-10-29T16:48:55-07:00 [thread overview]
Message-ID: <fc143556-2ad7-4e7d-a2fa-47488249a887@googlegroups.com> (raw)
In-Reply-To: <alpine.CYG.2.11.1410291850510.4816@WIL414CHAPIN.vtc.vsc.edu>
On Wednesday, October 29, 2014 4:28:59 PM UTC-7, Peter Chapin wrote:
> Well Eclipse has a 'change method signature' refactoring option. It
> changes the signature of a method and all its overrides. It can also keep
> the original method and have it delegate to the new method (and mark the
> original as depreciated).
>
> > - something else?
>
> I'm looking at the refactor menu in Eclipse... there is an option to
> convert a local variable of a method into a field of the class. So in Ada
> terms that would be promoting a local variable of a primitive subprogram
> to a component of the tagged type.
>
> Eclipse also has refactorings to move methods from super classes to
> subclasses (or vice-versa). In Ada terms we are talking about moving
> subprograms from one package to another, with suitable renamings I guess.
>
> There is also an extract interface refactoring that examines a class and
> generates an interface based on the methods it finds there.
>
> There are other refactorings too, but you get the idea. Of course we are
> talking about Java here so the ones I mentioned are all OOP specific. One
> 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 like this is very difficult to get right all the time, and I wish it gave me more options to customize when it guesses wrong. At that point, all I can do 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
next prev parent reply other threads:[~2014-10-29 23:48 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-26 18:34 IDE's that support ADA nathandsash
2014-10-26 18:58 ` Martyn Pike
2014-10-26 19:02 ` Niklas Holsti
2014-11-14 22:38 ` rriehle
2014-11-16 0:38 ` David Botton
2014-10-26 21:33 ` David Botton
2014-10-29 1:52 ` Robert Love
2014-10-29 1:58 ` David Botton
2014-11-05 20:58 ` Wesley Pan
2014-10-28 7:38 ` Stephen Leake
2014-10-28 11:43 ` Peter Chapin
2014-10-29 21:47 ` Stephen Leake
2014-10-29 23:28 ` Peter Chapin
2014-10-29 23:48 ` Adam Beneschan [this message]
2014-11-01 21:58 ` Stephen Leake
2014-11-03 17:48 ` Adam Beneschan
2014-10-30 8:19 ` Dmitry A. Kazakov
2014-10-30 14:42 ` Adam Beneschan
2014-10-30 16:22 ` Peter Chapin
2014-11-01 22:01 ` Stephen Leake
2014-11-02 15:13 ` Peter Chapin
2014-11-03 13:41 ` Stephen Leake
2014-11-03 9:43 ` IDE's that support Ada Jacob Sparre Andersen
2014-11-03 18:14 ` Simon Wright
2014-11-04 17:46 ` Stephen Leake
2014-11-04 19:35 ` Simon Wright
2014-11-04 20:36 ` Jacob Sparre Andersen
2014-11-05 14:25 ` Stephen Leake
2014-11-01 21:53 ` IDE's that support ADA Stephen Leake
2014-11-01 22:46 ` Dmitry A. Kazakov
2014-11-02 15:10 ` Peter Chapin
2014-11-03 13:38 ` Stephen Leake
2014-11-03 17:00 ` Luke A. Guest
2014-11-03 18:52 ` David Botton
2014-11-03 19:50 ` Luke A. Guest
2014-11-03 20:46 ` David Botton
2014-11-03 22:55 ` Luke A. Guest
2014-11-04 18:11 ` Stephen Leake
2014-11-04 3:41 ` Dennis Lee Bieber
2014-11-04 18:10 ` Stephen Leake
2014-11-04 18:03 ` Stephen Leake
2014-11-03 12:24 ` Florian Weimer
2014-10-28 12:59 ` David Botton
2014-10-29 21:51 ` Stephen Leake
2014-11-11 0:11 ` Hubert
2014-11-11 0:31 ` David Botton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox