//=========================================================================
private boolean downloadComponents()
{
AsposeComponentManagerCallback callback = new AsposeComponentManagerCallback(this);
final ModalTaskImpl modalTask = new ModalTaskImpl(myBuilder.getMyProject(), callback,"Downloading Aspose API");
ApplicationManager.getApplication().invokeAndWait(new Runnable() {
@Override
public void run() {
ProgressManager.getInstance().run(modalTask);
}
}, ModalityState.defaultModalityState());
if (!modalTask.isDone())
{
return false;
}
return true;