// ---- init infrastructure ----
// warning : reihenfolge is crucial
// oscServer = new OSCRoot( prefs.node( OSCRoot.DEFAULT_NODE ), 0x4549 );
osc = new OSCRouterWrapper( oscServer, this );
final CacheManager cache = new PrefCacheManager( prefs.node( PrefCacheManager.DEFAULT_NODE ));
superCollider = new SuperColliderClient();
init();
// ---- listeners ----
quitAfterSaveListener = new ProcessingThread.Listener() {
public void processStarted( ProcessingThread.Event e ) { /* empty */ }
// if the saving was successfull, we will call closeAll again
public void processStopped( ProcessingThread.Event e )
{
if( e.isDone() ) {
quit();
}
}
};
try {
superCollider.init();
}
catch( IOException e1 ) {
BasicWindowHandler.showErrorDialog( null, e1, "SuperColliderClient Initialization" );
System.exit( 1 );
return;
}
// scPlugInManager = new SCPlugInManager( this );
// ---- component views ----
mainFrame = new MainFrame();
((BasicWindowHandler) getWindowHandler()).setDefaultBorrower( mainFrame );
final AppWindow ctrlRoom = new ControlRoomFrame();
final AppWindow observer = new ObserverPalette();
// means no preferences found, so
// do some more default initializations
// and display splash screen
if( prefsVersion == 0.0 ) {
ctrlRoom.setVisible( true );
observer.setVisible( true );
if( cache.getFolder().isDirectory() ) {
cache.setActive( true );
}
new WelcomeScreen( this );
}
if( warnings != null ) {