Example usage for org.aspectj.asm AsmManager getRelationshipMap

List of usage examples for org.aspectj.asm AsmManager getRelationshipMap

Introduction

In this page you can find the example usage for org.aspectj.asm AsmManager getRelationshipMap.

Prototype

public IRelationshipMap getRelationshipMap() 

Source Link

Usage

From source file:org.eclipse.ajdt.core.model.AJProjectModelFacade.java

License:Open Source License

/**
 * grabs the structure and relationships for this project
 * <p> //from  ww  w. jav a2s.c  om
 * called by the before advice in EnsureInitialized aspect
 */
synchronized void init() {
    if (!buildListener.isCurrentlyBuilding(project)) {
        AjCompiler compiler = AspectJPlugin.getDefault().getCompilerFactory().getCompilerForProject(project);
        AsmManager existingState = compiler.getModel();
        if (existingState != null) {
            relationshipMap = existingState.getRelationshipMap();
            structureModel = existingState.getHierarchy();
            if (relationshipMap != null && structureModel != null) {
                isInitialized = true;
            }
        }
    } else {
        // can't initialize...building
    }
}