本文整理汇总了Java中org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil.resolve方法的典型用法代码示例。如果您正苦于以下问题:Java EMFCoreUtil.resolve方法的具体用法?Java EMFCoreUtil.resolve怎么用?Java EMFCoreUtil.resolve使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil
的用法示例。
在下文中一共展示了EMFCoreUtil.resolve方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSemanticElement
import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; //导入方法依赖的package包/类
/**
* @generated
*/
private EObject getSemanticElement(IAdaptable semanticAdapter) {
if (semanticAdapter == null) {
return null;
}
EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
if (eObject != null) {
return EMFCoreUtil.resolve(
TransactionUtil.getEditingDomain(eObject), eObject);
}
return null;
}
示例2: getSemanticElement
import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; //导入方法依赖的package包/类
/**
* @generated
*/
private EObject getSemanticElement(IAdaptable semanticAdapter) {
if (semanticAdapter == null) {
return null;
}
EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
if (eObject != null) {
return EMFCoreUtil.resolve(TransactionUtil
.getEditingDomain(eObject), eObject);
}
return null;
}
示例3: getSemanticElement
import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; //导入方法依赖的package包/类
/**
* @generated
*/
private EObject getSemanticElement(IAdaptable semanticAdapter) {
if (semanticAdapter == null) {
return null;
}
EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
if (eObject != null) {
return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
}
return null;
}
示例4: getSemanticElement
import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; //导入方法依赖的package包/类
/**
* @generated
*/
private EObject getSemanticElement(IAdaptable semanticAdapter) {
if (semanticAdapter == null) {
return null;
}
EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
if (eObject != null) {
return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
}
return null;
}
示例5: getSemanticElement
import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil; //导入方法依赖的package包/类
/**
* @generated
*/
private EObject getSemanticElement(IAdaptable semanticAdapter) {
if (semanticAdapter == null) {
return null;
}
EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
if (eObject != null) {
return EMFCoreUtil.resolve(TransactionUtil
.getEditingDomain(eObject), eObject);
}
return null;
}