Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

EmptyProgressMonitor.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2012, Sasa Zivkov <sasa.zivkov@sap.com> and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.lib;
  11. /**
  12. * A convenient base class which provides empty method bodies for all
  13. * ProgressMonitor methods.
  14. * <p>
  15. * Could be used in scenarios when only some of the progress notifications are
  16. * important and others can be ignored.
  17. */
  18. public abstract class EmptyProgressMonitor implements ProgressMonitor {
  19. /** {@inheritDoc} */
  20. @Override
  21. public void start(int totalTasks) {
  22. // empty
  23. }
  24. /** {@inheritDoc} */
  25. @Override
  26. public void beginTask(String title, int totalWork) {
  27. // empty
  28. }
  29. /** {@inheritDoc} */
  30. @Override
  31. public void update(int completed) {
  32. // empty
  33. }
  34. /** {@inheritDoc} */
  35. @Override
  36. public void endTask() {
  37. // empty
  38. }
  39. /** {@inheritDoc} */
  40. @Override
  41. public boolean isCancelled() {
  42. return false;
  43. }
  44. }