private void quickSetup ( ) { initialiseDatabase ( ) ; Common . getInstance ( ) . initializeCurrency ( ) ; Currency currency = Common . getInstance ( ) . getCurrencyManager ( ) . addCurrency ( getMainConfig ( ) . getString ( "System.QuickSetup.Currency.Name" ) , getMainConfig ( ) . getString ( "System.QuickSetup.Currency.NamePlural" ) , getMainConfig ( ) . getString ( "System.QuickSetup.Currency.Minor" ) , getMainConfig ( ) . getString ( "System.QuickSetup.Currency.MinorPlural" ) , getMainConfig ( ) . getString ( "System.QuickSetup.Currency.Sign" ) , true ) ; Common . getInstance ( ) . getCurrencyManager ( ) . setDefault ( currency ) ; Common . getInstance ( ) . getCurrencyManager ( ) . setDefaultBankCurrency ( currency ) ; getStorageHandler ( ) . getStorageEngine ( ) . setConfigEntry ( "longmode" , DisplayFormat . valueOf ( getMainConfig ( ) . getString ( "System.QuickSetup.DisplayMode" ) . toUpperCase ( ) ) . toString ( ) ) ; getStorageHandler ( ) . getStorageEngine ( ) . setConfigEntry ( "holdings" , getMainConfig ( ) . getString ( "System.QuickSetup.StartBalance" ) ) ; getStorageHandler ( ) . getStorageEngine ( ) . setConfigEntry ( "bankprice" , getMainConfig ( ) . getString ( "System.QuickSetup.PriceBank" ) ) ; initializeCurrency ( ) ; loadDefaultSettings ( ) ; Common . getInstance ( ) . startUp ( ) ; Common . getInstance ( ) . getMainConfig ( ) . setValue ( "System.Setup" , false ) ; commandManager . setCurrentLevel ( 1 ) ; sendConsoleMessage ( Level . INFO , "Quick-Config done!" ) ; }
Perform a quick setup