class RunConfigurationDelegate {

  public void edit( RunConfiguration runConfiguration ) {
    final String key = runConfiguration.getName();
    RunConfigurationDialog dialog =
      new RunConfigurationDialog( spoonSupplier.get().getShell(), configurationManager,
        runConfiguration );
    RunConfiguration savedRunConfiguration = dialog.open();

    if ( savedRunConfiguration != null ) {
      configurationManager.delete( key );
      configurationManager.save( savedRunConfiguration );
      spoonSupplier.get().refreshTree();

      updateLoadedJobs( key, savedRunConfiguration );
    }
  }

  public  RunConfigurationDelegate( RunConfigurationService configurationManager );

}