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.

AjIncrementalImageBuilder.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*******************************************************************************
  2. * Copyright (c) 2004 IBM Corporation and others.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available 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:
  9. * IBM Corporation - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.ajdt.internal.core.builder;
  12. import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult;
  13. import org.aspectj.org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder;
  14. import org.aspectj.org.eclipse.jdt.internal.core.builder.SourceFile;
  15. /**
  16. * @author colyer
  17. *
  18. * Incremental builder used by IDE support (AJDT)
  19. */
  20. public class AjIncrementalImageBuilder extends IncrementalImageBuilder {
  21. public AjIncrementalImageBuilder(AspectJBuilder builder) {
  22. super(builder);
  23. }
  24. /* (non-Javadoc)
  25. * @see org.eclipse.jdt.internal.compiler.ICompilerRequestor#acceptResult(org.eclipse.jdt.internal.compiler.CompilationResult)
  26. */
  27. public void acceptResult(CompilationResult result) {
  28. if ((result.getCompilationUnit() != null) && (result.getCompilationUnit() instanceof SourceFile)) {
  29. super.acceptResult(result);
  30. } else {
  31. // it's a file originating from binary source...
  32. // we need to handle it ourselves
  33. // TODO handle binary source output
  34. }
  35. }
  36. }