public void addRunConfiguration(Project project,String name,Properties properties){
  try {
    J2SEProjectConfigurations.createConfigurationFiles(project,name,properties,null);
  }
 catch (  IOException ex) {
    Exceptions.printStackTrace(ex);
  }
catch (  IllegalArgumentException ex) {
    Exceptions.printStackTrace(ex);
  }
}

public void addRunConfiguration ( Project project , String name , Properties properties ) { try { J2SEProjectConfigurations . createConfigurationFiles ( project , name , properties , null ) ; } catch ( IOException ex ) { Exceptions . printStackTrace ( ex ) ; } catch ( IllegalArgumentException ex ) { Exceptions . printStackTrace ( ex ) ; } }
adds a run configuration ( works direct , no removing )
