Java Code Examples for org.eclipse.emf.ecore.util.ECrossReferenceAdapter

The following are top voted examples for showing how to use org.eclipse.emf.ecore.util.ECrossReferenceAdapter. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: emfstore-rest   File: ProjectSpaceBase.java   Source Code and License 6 votes vote down vote up
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);
		}
	}
 
Example 2
Project: NEXCORE-UML-Modeler   File: UMLDomainTest.java   Source Code and License 5 votes vote down vote up
/**
 * @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();
}
 
Example 3
Project: NEXCORE-UML-Modeler   File: UMLModelerDomainModelHandler.java   Source Code and License 4 votes vote down vote up
/**
 * @see nexcore.tool.mdd.core.extension.IDomainModelHandler#getECrossReferenceAdapter()
 */
public ECrossReferenceAdapter getECrossReferenceAdapter() {
    return crossReferenceAdapter;
}
 
Example 4
Project: NEXCORE-UML-Modeler   File: IDomainModelHandler.java   Source Code and License 2 votes vote down vote up
/**
 * 도메인 모델의 교차참조 어뎁터 반환
 * 
 * @return ECrossReferenceAdapter
 */
public ECrossReferenceAdapter getECrossReferenceAdapter();
 
Example 5
Project: NEXCORE-UML-Modeler   File: UMLDomainTest.java   Source Code and License 2 votes vote down vote up
/**
 * 교차 참조 어뎁터 반환
 * 
 * @return ECrossReferenceAdapter
 */
public ECrossReferenceAdapter getECrossReferenceAdapter() {
    return this.crossReferenceAdapter;
}