All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.intellij.openapi.vcs.VcsDataKeys Maven / Gradle / Ivy

/*
 * 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;

import com.intellij.openapi.actionSystem.DataKey;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.vcs.changes.Change;
import com.intellij.openapi.vcs.changes.ChangeList;
import com.intellij.openapi.vcs.changes.ChangeRequestChain;
import com.intellij.openapi.vcs.history.VcsFileRevision;
import com.intellij.openapi.vcs.history.VcsHistoryProvider;
import com.intellij.openapi.vcs.history.VcsHistorySession;
import com.intellij.openapi.vcs.history.VcsRevisionNumber;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.pointers.VirtualFilePointer;
import com.intellij.util.Consumer;
import org.jetbrains.annotations.NonNls;

import java.io.File;
import java.util.List;

/**
 * @author yole
 */
public interface VcsDataKeys {
  DataKey IO_FILE_ARRAY = DataKey.create("IO_FILE_ARRAY");
  DataKey IO_FILE = DataKey.create("IO_FILE");
  DataKey VCS = DataKey.create("VCS");
  DataKey VCS_NON_LOCAL_HISTORY_SESSION = DataKey.create("VCS_NON_LOCAL_HISTORY_SESSION");
  DataKey HISTORY_SESSION = DataKey.create("VCS_HISTORY_SESSION");
  DataKey VCS_FILE_REVISION = DataKey.create("VCS_FILE_REVISION");
  DataKey VCS_FILE_REVISIONS = DataKey.create("VCS_FILE_REVISIONS");
  DataKey VCS_VIRTUAL_FILE = DataKey.create("VCS_VIRTUAL_FILE");
  DataKey FILE_PATH = DataKey.create("FILE_PATH");
  DataKey FILE_PATH_ARRAY = DataKey.create("FILE_PATH_ARRAY");
  DataKey FILE_HISTORY_PANEL = DataKey.create("FILE_HISTORY_PANEL");
  DataKey CHANGE_LISTS = DataKey.create("vcs.ChangeList");
  DataKey CURRENT_CHANGE = DataKey.create("vcs.CurrentChange");
  DataKey CHANGES = DataKey.create("vcs.Change");
  DataKey CHANGES_WITH_MOVED_CHILDREN = DataKey.create("ChangeListView.ChangesWithDetails");
  DataKey SELECTED_CHANGES_IN_DETAILS = DataKey.create("ChangeListView.SelectedChangesWithMovedSubtrees");
  @NonNls DataKey> CHANGES_IN_LIST_KEY = DataKey.create("ChangeListView.ChangesInList");
  @NonNls DataKey> MODIFIED_WITHOUT_EDITING_DATA_KEY = DataKey.create("ChangeListView.ModifiedWithoutEditing");
  @NonNls DataKey HAVE_MODIFIED_WITHOUT_EDITING = DataKey.create("ChangeListView.HaveModifiedWithoutEditing");
  @NonNls DataKey HAVE_LOCALLY_DELETED = DataKey.create("ChangeListView.HaveLocallyDeleted");
  DataKey SELECTED_CHANGES = DataKey.create("ChangeListView.SelectedChange");
  DataKey HAVE_SELECTED_CHANGES = DataKey.create("ChangeListView.HaveSelectedChanges");
  DataKey CHANGE_LEAD_SELECTION = DataKey.create("ChangeListView.ChangeLeadSelection");
  DataKey DIFF_REQUEST_CHAIN = DataKey.create("diffRequestChain");
  DataKey UPDATE_VIEW_SELECTED_PATH = DataKey.create("AbstractCommonUpdateAction.UpdateViewSelectedPath");
  DataKey>> UPDATE_VIEW_FILES_ITERABLE = DataKey.create("AbstractCommonUpdateAction.UpdatedFilesIterable");
  DataKey LABEL_BEFORE = DataKey.create("LABEL_BEFORE");
  DataKey LABEL_AFTER = DataKey.create("LABEL_AFTER");
  DataKey PRESET_COMMIT_MESSAGE = DataKey.create("PRESET_COMMIT_MESSAGE");
  DataKey COMMIT_MESSAGE_CONTROL = DataKey.create("COMMIT_MESSAGE_CONTROL");
  DataKey> REMOTE_HISTORY_CHANGED_LISTENER = DataKey.create("REMOTE_HISTORY_CHANGED_LISTENER");
  DataKey REMOTE_HISTORY_LOCATION = DataKey.create("REMOTE_HISTORY_LOCATION");
  DataKey VCS_REVISION_NUMBER = DataKey.create("VCS_REVISION_NUMBER");
  DataKey VCS_REVISION_NUMBERS = DataKey.create("VCS_REVISION_NUMBERS");
  DataKey HISTORY_PROVIDER = DataKey.create("VCS_HISTORY_PROVIDER");
}