Java 类org.eclipse.emf.ecore.util.ECrossReferenceAdapter 实例源码

项目:emfstore-rest    文件:ProjectSpaceBase.java   
private void initCrossReferenceAdapter() {

        // default
        boolean useCrossReferenceAdapter = true;

        for (final ESExtensionElement element : new ESExtensionPoint(
            "org.eclipse.emf.emfstore.client.inverseCrossReferenceCache")
            .getExtensionElements()) {
            useCrossReferenceAdapter &= element.getBoolean("activated");
        }

        if (useCrossReferenceAdapter) {
            crossReferenceAdapter = new ECrossReferenceAdapter();
            getProject().eAdapters().add(crossReferenceAdapter);
        }
    }
项目:NEXCORE-UML-Modeler    文件:UMLDomainTest.java   
/**
 * @see nexcore.tool.uml.manager.IUMLDomain#initializeDomain()
 */
public void initializeDomain() {
    transactionEditingDomain = TransactionalEditingDomain.Factory.INSTANCE.createEditingDomain(resourceSet);

    this.gefCommandStack.setTransactionEditingDomain(transactionEditingDomain);

    resourceSetListener = new UMLResourceSetListener();

    transactionEditingDomain.addResourceSetListener(resourceSetListener);

    this.resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
    this.resourceSet.getPackageRegistry().put(UMLDiagramPackage.eNS_URI, UMLDiagramPackage.eINSTANCE);
    this.resourceSet.getPackageRegistry().put(UMLFragmentPackage.eNS_URI, UMLFragmentPackage.eINSTANCE);
    this.resourceSet.getPackageRegistry().put(ProjectInformationPackage.eNS_URI,
        ProjectInformationPackage.eINSTANCE);
    this.resourceSet.getPackageRegistry().put(UseCaseDetailPackage.eNS_URI, UseCaseDetailPackage.eINSTANCE);

    this.resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION,
        UMLResource.Factory.INSTANCE);
    this.resourceSet.getResourceFactoryRegistry()
        .getExtensionToFactoryMap()
        .put(ManagerConstant.UMLDOMAIN_CONSTANT__MODEL_FILE_EXTENSION, UMLResource.Factory.INSTANCE);
    this.resourceSet.getResourceFactoryRegistry()
        .getExtensionToFactoryMap()
        .put(ManagerConstant.UMLDOMAIN_CONSTANT__FRAGMENT_FILE_EXTENSION, UMLResource.Factory.INSTANCE);

    crossReferenceAdapter = new ECrossReferenceAdapter();
    this.resourceSet.eAdapters().add(crossReferenceAdapter);

    this.resourceSet.getLoadOptions().putAll(DomainUtil.getLoadOptions());

    // RMData용 리소스 셋 초기화
    initializeRMDataResourceSet();
}
项目:NEXCORE-UML-Modeler    文件:UMLModelerDomainModelHandler.java   
/**
 * @see nexcore.tool.mdd.core.extension.IDomainModelHandler#getECrossReferenceAdapter()
 */
public ECrossReferenceAdapter getECrossReferenceAdapter() {
    return crossReferenceAdapter;
}
项目:NEXCORE-UML-Modeler    文件:IDomainModelHandler.java   
/**
 * 도메인 모델의 교차참조 어뎁터 반환
 * 
 * @return ECrossReferenceAdapter
 */
public ECrossReferenceAdapter getECrossReferenceAdapter();
项目:NEXCORE-UML-Modeler    文件:UMLDomainTest.java   
/**
 * 교차 참조 어뎁터 반환
 * 
 * @return ECrossReferenceAdapter
 */
public ECrossReferenceAdapter getECrossReferenceAdapter() {
    return this.crossReferenceAdapter;
}