Ejemplo n.º 1
0
 public SmoothProgressAdapter(ProgressIndicator original, Project project) {
   myOriginal = original;
   myProject = project;
   if (myOriginal.isModal()) {
     myOriginal.setModalityProgress(this);
     this.setModalityProgress(this);
   }
 }
 public SmoothProgressAdapter(@NotNull ProgressIndicator original, @NotNull Project project) {
   myOriginal = original;
   myProject = project;
   if (myOriginal.isModal()) {
     myOriginal.setModalityProgress(this);
     setModalityProgress(this);
   }
   ProgressManager.assertNotCircular(original);
 }
 @Override
 public void setModalityProgress(final ProgressIndicator modalityProgress) {
   myIndicator.setModalityProgress(modalityProgress);
 }