this.runningEmulators.add( emulator ); }
break; }
	protected void runEmulator( Device device, Locale locale ) {		if ( this.emulatorSetting.isActive(getProject()) ) {			BooleanEvaluator evaluator = this.environment.getBooleanEvaluator();			Project antProject = getProject();			// get currently active source directories:			ArrayList sourceDirsList = new ArrayList();			for (int i = 0; i < this.sourceSettings.length; i++) {				SourceSetting setting = this.sourceSettings[i];				if (setting.isActive(evaluator, antProject)) {					sourceDirsList.add( setting.getDir() );				}			}			File[] sourceDirs = (File[]) sourceDirsList.toArray( new File[ sourceDirsList.size() ] );			Emulator emulator = Emulator.createEmulator(device, this.emulatorSetting, this.environment, getProject(), evaluator, this.wtkHome, sourceDirs );			if (emulator != null) {				emulator.execute( device, locale, this.environment );				if (this.runningEmulators == null) {					this.runningEmulators = new ArrayList();				}				this.runningEmulators.add( emulator );			}					}	}