/*
 * Copyright 2000-2009 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.openapi.vcs.impl;

import com.intellij.openapi.project.Project;

@Deprecated
public class BackgroundableActionEnabledHandler {
  private final Project myProject;
  private final VcsBackgroundableActions myAction;

  BackgroundableActionEnabledHandler(Project project, VcsBackgroundableActions action) {
    myProject = project;
    myAction = action;
  }

  public void register(final Object path) {
    BackgroundableActionLock.lock(myProject, myAction, path);
  }

  public boolean isInProgress(final Object path) {
    return BackgroundableActionLock.isLocked(myProject, myAction, path);
  }

  public void completed(final Object path) {
    BackgroundableActionLock.unlock(myProject, myAction, path);
  }
}

@@ -16,17 +16,17 @@
  2000-20
-0
+1
 9 JetBra
@@ -680,16 +680,76 @@
 oject;%0A%0A
+/**%0A * @deprecated use %7B@link BackgroundableActionLock%7D%0A */%0A
 @Depreca

add @deprecation javadoc