@@ -0,0 +1,1392 @@
+/*%0A * ProgressDelayer.java%0A *%0A * Copyright (C) 2009-15 by RStudio, Inc.%0A *%0A * Unless you have received this program directly from RStudio pursuant%0A * to the terms of a commercial license agreement with RStudio, then%0A * this program is licensed to you under the terms of version 3 of the%0A * GNU Affero General Public License. This program is distributed WITHOUT%0A * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,%0A * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the%0A * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.%0A *%0A */%0Apackage org.rstudio.studio.client.common;%0A%0Aimport org.rstudio.core.client.widget.ProgressIndicator;%0A%0Aimport com.google.gwt.user.client.Timer;%0A%0Apublic class ProgressDelayer%0A%7B%0A   public ProgressDelayer(ProgressIndicator indicator, %0A         final int delayMillis, final String progressMessage)%0A   %7B%0A      indicator_ = indicator;%0A      timer_ = new Timer()%0A      %7B%0A         @Override%0A         public void run()%0A         %7B%0A            indicator_.onProgress(progressMessage);%0A         %7D%0A      %7D;%0A      timer_.schedule(delayMillis);%0A   %7D%0A%0A   public void dismiss()%0A   %7B%0A      if (timer_ != null )%0A      %7B%0A         timer_.cancel();%0A      %7D%0A      %0A      if (indicator_ != null)%0A      %7B%0A         indicator_.onCompleted();%0A      %7D%0A   %7D%0A%0A   private final Timer timer_;%0A   private final ProgressIndicator indicator_;%0A%7D%0A

add non-global progress delayer