List of usage examples for org.aspectj.asm AsmManager getRelationshipMap
public IRelationshipMap getRelationshipMap()
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 } }