public synchronized void add(int position,AbstractOption option){
  AbstractOption search=getByName(option.getName());
  if (search != null) {
    LOG.warn("Trying to add an option with an existing name... option not added! Please consult the plugin maintainer!");
  }
 else {
    List<AbstractOption> oldOptions=new ArrayList<AbstractOption>(options);
    options.add(position,option);
    option.setCollection(this);
    List<AbstractOption> newOptions=getOptions();
    fireIndexedPropertyChange(PROP_OPTIONS,position,oldOptions,newOptions);
  }
}

public synchronized void add ( int position , AbstractOption option ) { AbstractOption search = getByName ( option . getName ( ) ) ; if ( search != null ) { LOG . warn ( "Trying to add an option with an existing name... option not added! Please consult the plugin maintainer!" ) ; } else { List < AbstractOption > oldOptions = new ArrayList < AbstractOption > ( options ) ; options . add ( position , option ) ; option . setCollection ( this ) ; List < AbstractOption > newOptions = getOptions ( ) ; fireIndexedPropertyChange ( PROP_OPTIONS , position , oldOptions , newOptions ) ; } }
adds an abstractoption to the container at a specified position
