• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ECrossReferenceAdapter类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.eclipse.emf.ecore.util.ECrossReferenceAdapter的典型用法代码示例。如果您正苦于以下问题:Java ECrossReferenceAdapter类的具体用法?Java ECrossReferenceAdapter怎么用?Java ECrossReferenceAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ECrossReferenceAdapter类属于org.eclipse.emf.ecore.util包,在下文中一共展示了ECrossReferenceAdapter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initCrossReferenceAdapter

点赞 3

import org.eclipse.emf.ecore.util.ECrossReferenceAdapter; //导入依赖的package包/类
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);
		}
	}
 

开发者ID:edgarmueller,
项目名称:emfstore-rest,
代码行数:17,
代码来源:ProjectSpaceBase.java

示例2: initializeDomain

点赞 2

import org.eclipse.emf.ecore.util.ECrossReferenceAdapter; //导入依赖的package包/类
/**
 * @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();
}
 

开发者ID:SK-HOLDINGS-CC,
项目名称:NEXCORE-UML-Modeler,
代码行数:37,
代码来源:UMLDomainTest.java

示例3: getECrossReferenceAdapter

点赞 2

import org.eclipse.emf.ecore.util.ECrossReferenceAdapter; //导入依赖的package包/类
/**
 * @see nexcore.tool.mdd.core.extension.IDomainModelHandler#getECrossReferenceAdapter()
 */
public ECrossReferenceAdapter getECrossReferenceAdapter() {
    return crossReferenceAdapter;
}
 

开发者ID:SK-HOLDINGS-CC,
项目名称:NEXCORE-UML-Modeler,
代码行数:7,
代码来源:UMLModelerDomainModelHandler.java

示例4: getECrossReferenceAdapter

点赞 1

import org.eclipse.emf.ecore.util.ECrossReferenceAdapter; //导入依赖的package包/类
/**
 * 도메인 모델의 교차참조 어뎁터 반환
 * 
 * @return ECrossReferenceAdapter
 */
public ECrossReferenceAdapter getECrossReferenceAdapter();
 

开发者ID:SK-HOLDINGS-CC,
项目名称:NEXCORE-UML-Modeler,
代码行数:7,
代码来源:IDomainModelHandler.java

示例5: getECrossReferenceAdapter

点赞 1

import org.eclipse.emf.ecore.util.ECrossReferenceAdapter; //导入依赖的package包/类
/**
 * 교차 참조 어뎁터 반환
 * 
 * @return ECrossReferenceAdapter
 */
public ECrossReferenceAdapter getECrossReferenceAdapter() {
    return this.crossReferenceAdapter;
}
 

开发者ID:SK-HOLDINGS-CC,
项目名称:NEXCORE-UML-Modeler,
代码行数:9,
代码来源:UMLDomainTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)