void () { synchronized (getLock()) { if (isRunning()) { throwInvalidState("Attempt to start ProgressIndicator which is already running"); } if (myStopped) { if (myCanceled && !isReuseable()) { throwInvalidState("Attempt to start ProgressIndicator which is cancelled and already stopped"); } myCanceled = false; myStopped = false; } myText = ""; myFraction = 0; myText2 = ""; if (myShouldStartActivity) { IconManager iconManager = IconManager.getInstance(); if (iconManager instanceof CoreAwareIconManager) { myMacActivity = ((CoreAwareIconManager)iconManager).wakeUpNeo(this); } } else { myMacActivity = null; } myRunning = true; } }