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.

IProgressListener.java 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* *******************************************************************
  2. * Copyright (c) 2003 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Xerox/PARC initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.bridge;
  13. /**
  14. * Used to give progress information typically to IDEs
  15. */
  16. public interface IProgressListener {
  17. /**
  18. * @param text the current phase of processing
  19. */
  20. public void setText(String text);
  21. /**
  22. * @param percentDone how much work is completed so far
  23. */
  24. public void setProgress(double percentDone);
  25. /**
  26. * @param cancelRequested true if the caller wants the current compilation to stop asap
  27. */
  28. public void setCancelledRequested(boolean cancelRequested);
  29. /**
  30. * @return true if the consumer of the progress info would like the compileation to stop
  31. */
  32. public boolean isCancelledRequested();
  33. }