/**
   * execute method.
   *
   * @param context the {@link IEclipseContext}
   * @param translationService the {@link TestEditorTranslationService}
   * @param shell the active shell
   */
  @Execute
  public void execute(
      IEclipseContext context,
      TestEditorTranslationService translationService,
      @Named(IServiceConstants.ACTIVE_SHELL) Shell shell) {

    if (renameHandler != null) {
      renameHandler.execute(context, translationService, shell);
    }
  }
  /**
   * Check if this Handler is enabled on the selection. Only one Teststrucutre is valid as a
   * selection.
   *
   * @param context Eclipse Context to retrive the Viewer
   * @return true if only one element is selected.
   */
  @CanExecute
  public boolean canExecute(IEclipseContext context) {

    TestExplorer explorer = (TestExplorer) context.get(TestEditorConstants.TEST_EXPLORER_VIEW);
    TestStructure selected = (TestStructure) explorer.getSelection().getFirstElement();

    renameHandler = getAbstactRenameTestStructureHandler(context, selected);
    if (renameHandler != null) {
      return renameHandler.canExecute(context);
    }
    return false;
  }