[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
AW: [jdt-ui-dev] Extract Method Refactoring
|
-----Ursprüngliche Nachricht-----
Von: jdt-ui-dev-admin@xxxxxxxxxxx
[mailto:jdt-ui-dev-admin@xxxxxxxxxxx]Im Auftrag von adam kiezun
Gesendet: Montag, 10. Dezember 2001 14:33
An: jdt-ui-dev@xxxxxxxxxxx
Betreff: Re: [jdt-ui-dev] Extract Method Refactoring
> Hi
>
> if nobody started working on the Extract Method Refactoring
> or the try/catch Refactoring I would like to implement it.
<extract temp you mean, i presume.>
no, I mean extract method
<for that one i guess it's best to wait for the new AST (consult jdt-core
project website)
it'll have support for finding matching ast nodes - we need that in order to
extract many expressions - only then is the refactoring really useful.>
<try/catch'd be good, i think. Dirk?>
ok, I have one question:
I looked at RefactoringAction.canOperateOn:
it seems to check for a selection in the outline view
how can I check for a selection in the text editor (i.e. a selection of
text) ?
or how would I activate the refactoring ?
<also, see bug 6652: http://bugs.eclipse.org/bugs/show_bug.cgi?id=6652
(feature request: 'surround selection with...')
for some suggestions and for reference.>
greets
Jens