@@ -465,15 +465,19 @@ def run(self):
465465 if not input_str :
466466 return False
467467
468- changes = self .get_changes (refactor , input_str )
469-
470468 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 )
472476
473477 if not action :
474478 return False
475479
476- if action == 'preview' :
480+ if action . startswith ( 'preview' ) :
477481 print ("\n " )
478482 print ("-------------------------------" )
479483 print ("\n %s\n " % changes .get_description ())
@@ -505,15 +509,15 @@ def get_input_str(refactor, ctx):
505509 return True
506510
507511 @staticmethod
508- def get_changes (refactor , input_str ):
512+ def get_changes (refactor , input_str , in_hierarchy = False ):
509513 """ Get changes.
510514
511515 :return Changes:
512516
513517 """
514518 progress = ProgressHandler ('Calculate changes ...' )
515519 return refactor .get_changes (
516- input_str , task_handle = progress .handle )
520+ input_str , task_handle = progress .handle , in_hierarchy = in_hierarchy )
517521
518522
519523class RenameRefactoring (Refactoring ):
0 commit comments