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); } }
/** * @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(); }
/** * @see nexcore.tool.mdd.core.extension.IDomainModelHandler#getECrossReferenceAdapter() */ public ECrossReferenceAdapter getECrossReferenceAdapter() { return crossReferenceAdapter; }
/** * 도메인 모델의 교차참조 어뎁터 반환 * * @return ECrossReferenceAdapter */ public ECrossReferenceAdapter getECrossReferenceAdapter();
/** * 교차 참조 어뎁터 반환 * * @return ECrossReferenceAdapter */ public ECrossReferenceAdapter getECrossReferenceAdapter() { return this.crossReferenceAdapter; }