Package org.aspectj.org.eclipse.jdt.internal.core

Examples of org.aspectj.org.eclipse.jdt.internal.core.SourceMapper


        // turn off import complaints for implicitly added ones
        options.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.IGNORE);
      }
    } else {
      // try to retrieve imports from the source
      SourceMapper sourceMapper = ((ClassFile) declaringType.getClassFile()).getSourceMapper();
      if (sourceMapper != null) {
        char[][] imports = sourceMapper.getImports((BinaryType) declaringType);
        if (imports != null) {
          this.context.setImports(imports);
          // turn off import complaints for implicitly added ones
          options.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.IGNORE);
        }
View Full Code Here


  ISourceRange range = classFile.isOpen() ? binaryMember.getNameRange() : SourceMapper.UNKNOWN_RANGE;
  if (range.getOffset() == -1) {
    BinaryType type = (BinaryType) classFile.getType();
    String sourceFileName = type.sourceFileName(info);
    if (sourceFileName != null) {
      SourceMapper mapper = classFile.getSourceMapper();
      if (mapper != null) {
        char[] contents = mapper.findSource(type, sourceFileName);
        if (contents != null)
          range = mapper.mapSource(type, contents, info, binaryMember);
      }
    }
  }
  if (resource == null) resource =  this.currentPossibleMatch.resource;
  SearchMatch match = newDeclarationMatch(binaryMember, binaryMemberBinding, accuracy, range.getOffset(), range.getLength(), getParticipant(), resource);
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.SourceMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.