@@ -465,15 +465,19 @@ def run(self):
465
465
if not input_str :
466
466
return False
467
467
468
- changes = self .get_changes (refactor , input_str )
469
-
470
468
action = env .user_input_choices (
471
- 'Choose what to do:' , 'perform' , 'preview' )
469
+ 'Choose what to do:' , 'perform' , 'preview' ,
470
+ 'perform in class hierarchy' ,
471
+ 'preview in class hierarchy' )
472
+
473
+ in_hierarchy = action .endswith ("in class hierarchy" )
474
+
475
+ changes = self .get_changes (refactor , input_str , in_hierarchy )
472
476
473
477
if not action :
474
478
return False
475
479
476
- if action == 'preview' :
480
+ if action . startswith ( 'preview' ) :
477
481
print ("\n " )
478
482
print ("-------------------------------" )
479
483
print ("\n %s\n " % changes .get_description ())
@@ -505,15 +509,15 @@ def get_input_str(refactor, ctx):
505
509
return True
506
510
507
511
@staticmethod
508
- def get_changes (refactor , input_str ):
512
+ def get_changes (refactor , input_str , in_hierarchy = False ):
509
513
""" Get changes.
510
514
511
515
:return Changes:
512
516
513
517
"""
514
518
progress = ProgressHandler ('Calculate changes ...' )
515
519
return refactor .get_changes (
516
- input_str , task_handle = progress .handle )
520
+ input_str , task_handle = progress .handle , in_hierarchy = in_hierarchy )
517
521
518
522
519
523
class RenameRefactoring (Refactoring ):
0 commit comments