2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.openapi.vcs.changes;
18 import org.jetbrains.annotations.Nullable;
20 import java.util.Collection;
21 import java.util.List;
24 * only to be used by {@link ChangeProvider} in order to create IDEA's peer changelist
25 * in response to finding not registered VCS native list
26 * it can NOT be done through {@link ChangeListManager} interface; it is for external/IDEA user modifications
28 public interface ChangeListManagerGate {
29 List<LocalChangeList> getListsCopy();
31 LocalChangeList findChangeList(final String name);
32 LocalChangeList addChangeList(final String name, final String comment);
33 LocalChangeList findOrCreateList(final String name, final String comment);
35 void editComment(final String name, final String comment);
36 void editName(final String oldName, final String newName);
37 // must be allowed only for perforce change synchronizer, not during normal update
38 void moveChanges(final String toList, final Collection<Change> changes);
39 void deleteIfEmpty(final String name);