You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IBuildProgressMonitor.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /********************************************************************
  2. * Copyright (c) 2007 Contributors. All rights reserved.
  3. * This program and the accompanying materials are made available
  4. * under the terms of the Eclipse Public License v 2.0
  5. * which accompanies this distribution and is available at
  6. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  7. *
  8. * Contributors: IBM Corporation - initial API and implementation
  9. * Helen Hawkins - initial version (bug 148190)
  10. *******************************************************************/
  11. package org.aspectj.ajde.core;
  12. /**
  13. * Interface that presents the user with information about the
  14. * progress of the build
  15. */
  16. public interface IBuildProgressMonitor {
  17. /**
  18. * Start the progress monitor
  19. */
  20. void begin();
  21. /**
  22. * Sets the label describing the current progress phase.
  23. */
  24. void setProgressText(String text);
  25. /**
  26. * Stop the progress monitor
  27. *
  28. * @param wasFullBuild - true if was a full build, false otherwise
  29. */
  30. void finish(boolean wasFullBuild);
  31. /**
  32. * Sets the current progress done
  33. *
  34. * @param percentDone
  35. */
  36. void setProgress(double percentDone);
  37. /**
  38. * Checks whether the user has chosen to cancel the progress monitor
  39. *
  40. * @return true if progress monitor has been cancelled and false otherwise
  41. */
  42. boolean isCancelRequested();
  43. }