@@ -0,0 +1,2614 @@
+/*%0A * Copyright 2000-2010 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.intellij.execution;%0A%0Aimport org.jetbrains.annotations.Nullable;%0A%0Aimport javax.swing.*;%0A%0A/**%0A * @author oleg%0A */%0Apublic class ExecutionModes %7B%0A  /**%0A   * Process will be run in back ground mode%0A   */%0A  public static class BackGroundMode extends ExecutionMode %7B%0A%0A    public BackGroundMode(final boolean cancelable, @Nullable final String title) %7B%0A      super(cancelable, title, null, true, false, null);%0A    %7D%0A%0A    public BackGroundMode(@Nullable final String title) %7B%0A      this(true, title);%0A    %7D%0A  %7D%0A%0A  /**%0A   * Process will be run in modal dialog%0A   */%0A  public static class ModalProgressMode extends ExecutionMode %7B%0A%0A    public ModalProgressMode(final boolean cancelable, @Nullable final String title, JComponent progressParentComponent) %7B%0A      super(cancelable, title, null, false, true, progressParentComponent);%0A    %7D%0A%0A    public ModalProgressMode(@Nullable final String title) %7B%0A      this(true, title, null);%0A    %7D%0A%0A    public ModalProgressMode(@Nullable final String title, JComponent progressParentComponent) %7B%0A      this(true, title, progressParentComponent);%0A    %7D%0A  %7D%0A%0A  /**%0A   * Process will be run in the same thread.%0A   */%0A  public static class SameThreadMode extends ExecutionMode %7B%0A    private final int myTimeout;%0A%0A    public SameThreadMode(final boolean cancelable,%0A                          @Nullable final String title2,%0A                          final int timeout) %7B%0A      super(cancelable, null, title2, false, false, null);%0A      myTimeout = timeout;%0A    %7D%0A%0A    public SameThreadMode(@Nullable final String title2) %7B%0A      this(true, title2, -1);%0A    %7D%0A%0A    /**%0A     * @param cancelable%0A     */%0A    public SameThreadMode(final boolean cancelable) %7B%0A      this(cancelable, null, -1);%0A    %7D%0A%0A    /**%0A     * @param timeout If less than zero it will be ignored%0A     */%0A    public SameThreadMode(final int timeout) %7B%0A      this(false, null, timeout);%0A    %7D%0A%0A    public SameThreadMode() %7B%0A      this(true);%0A    %7D%0A%0A    public int getTimeout() %7B%0A      return myTimeout;%0A    %7D%0A  %7D%0A%7D%0A

Revert "Revert "Compilation fix. damn you incrementally compilation bugs""