/platform/vcs-api/src/com/intellij/openapi/vcs/checkin/BaseCheckinHandlerFactory.java

https://bitbucket.org/nbargnesi/idea · Java · 46 lines · 12 code · 3 blank · 31 comment · 0 complexity · c29f659bb2a5932b4f06e3d117351fc9 MD5 · raw file

  1. /*
  2. * Copyright 2000-2011 JetBrains s.r.o.
  3. *
  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
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  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.
  15. */
  16. package com.intellij.openapi.vcs.checkin;
  17. import com.intellij.openapi.project.Project;
  18. import com.intellij.openapi.vcs.CheckinProjectPanel;
  19. import com.intellij.openapi.vcs.changes.CommitContext;
  20. import org.jetbrains.annotations.NotNull;
  21. import org.jetbrains.annotations.Nullable;
  22. /**
  23. * @author irengrig
  24. * Date: 1/28/11
  25. * Time: 3:09 PM
  26. *
  27. * just interface for checkin handlers creation
  28. */
  29. public interface BaseCheckinHandlerFactory {
  30. /**
  31. * Creates a handler for a single Checkin Project or Checkin File operation.
  32. *
  33. *
  34. * @param panel the class which can be used to retrieve information about the files to be committed,
  35. * and to get or set the commit message.
  36. * @param commitContext
  37. * @return the handler instance.
  38. */
  39. @NotNull
  40. CheckinHandler createHandler(final CheckinProjectPanel panel, CommitContext commitContext);
  41. @Nullable
  42. BeforeCheckinDialogHandler createSystemReadyHandler(Project project);
  43. }