@Override public boolean performFinish(){
  DriverDescriptor driver=getSelectedDriver();
  ConnectionPageSettings pageSettings=getPageSettings();
  DataSourceDescriptor dataSourceTpl=pageSettings == null ? getActiveDataSource() : pageSettings.getActiveDataSource();
  DBPDataSourceRegistry dataSourceRegistry=getDataSourceRegistry();
  DataSourceDescriptor dataSourceNew=new DataSourceDescriptor(dataSourceRegistry,dataSourceTpl.getId(),driver,dataSourceTpl.getConnectionConfiguration());
  dataSourceNew.copyFrom(dataSourceTpl);
  saveSettings(dataSourceNew);
  dataSourceRegistry.addDataSource(dataSourceNew);
  return true;
}

@ Override public boolean performFinish ( ) { DriverDescriptor driver = getSelectedDriver ( ) ; ConnectionPageSettings pageSettings = getPageSettings ( ) ; DataSourceDescriptor dataSourceTpl = pageSettings == null ? getActiveDataSource ( ) : pageSettings . getActiveDataSource ( ) ; DBPDataSourceRegistry dataSourceRegistry = getDataSourceRegistry ( ) ; DataSourceDescriptor dataSourceNew = new DataSourceDescriptor ( dataSourceRegistry , dataSourceTpl . getId ( ) , driver , dataSourceTpl . getConnectionConfiguration ( ) ) ; dataSourceNew . copyFrom ( dataSourceTpl ) ; saveSettings ( dataSourceNew ) ; dataSourceRegistry . addDataSource ( dataSourceNew ) ; return true ; }
this method is called when ' finish ' button is pressed in the wizard . we will create an operation and run it using wizard as execution context .
