} else {
}
loadingDone = false;
AEThread2 progressMover = new AEThread2("progressMover",true) {
public void run() {
final int[] waitTime = new int[1];
waitTime[0]= 100;
while(!loadingDone) {
if(display != null && ! display.isDisposed()) {
display.asyncExec(new Runnable() {
public void run() {
if(loadingProgress != null && !loadingProgress.isDisposed()) {
int currentSelection = loadingProgress.getSelection() +1;
loadingProgress.setSelection(currentSelection);
if(currentSelection > (loadingProgress.getMaximum()) * 80 / 100) {
waitTime[0] = 300;
}
if (currentSelection > (loadingProgress.getMaximum()) * 90 / 100) {
waitTime[0] = 1000;
}
} else {
loadingDone = true;
}
}
});
}
try {
Thread.sleep(waitTime[0]);
//Thread.sleep(100);
} catch (Exception e) {
loadingDone = true;
}
}
}
};
progressMover.start();
} catch(Exception e) {
failed(null,null);
}
animatedImage.start();