本文整理汇总了Java中org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter类的典型用法代码示例。如果您正苦于以下问题:Java ParserHintAdapter类的具体用法?Java ParserHintAdapter怎么用?Java ParserHintAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParserHintAdapter类属于org.eclipse.gmf.runtime.emf.ui.services.parser包,在下文中一共展示了ParserHintAdapter类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getMAVOElementAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getMAVOElementAdaptable(IAdaptable element) {
EObject modelObj = (EObject) element.getAdapter(EObject.class);
MAVOElement mavoElement = (MAVOElement) ((ExtendibleElementReference) modelObj).getObject();
return new ParserHintAdapter(mavoElement, "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:8,代码来源:MAVOElementReferenceLabelParser.java
示例2: getTargetModelEndpointAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getTargetModelEndpointAdaptable(IAdaptable element) {
BinaryModelRel modelRel = (BinaryModelRel) element.getAdapter(EObject.class);
ModelEndpoint modelEndpoint = modelRel.getModelEndpointRefs().get(1).getObject();
return new ParserHintAdapter(modelEndpoint, "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:8,代码来源:BinaryModelRelTargetModelEndpointLabelParser.java
示例3: getSourceModelEndpointAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getSourceModelEndpointAdaptable(IAdaptable element) {
BinaryModelRel modelRel = (BinaryModelRel) element.getAdapter(EObject.class);
ModelEndpoint modelEndpoint = modelRel.getModelEndpointRefs().get(0).getObject();
return new ParserHintAdapter(modelEndpoint, "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:8,代码来源:BinaryModelRelSourceModelEndpointLabelParser.java
示例4: getTargetModelElementEndpointReferenceAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getTargetModelElementEndpointReferenceAdaptable(IAdaptable element) {
EObject modelObj = (EObject) element.getAdapter(EObject.class);
ModelElementEndpointReference modelElemEndpointRef = ((BinaryMappingReference) modelObj).getObject().getModelElemEndpointRefs().get(1);
return new ParserHintAdapter(modelElemEndpointRef, "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:8,代码来源:BinaryMappingReferenceTargetModelElementEndpointReferenceLabelParser.java
示例5: getSourceModelElementEndpointReferenceAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getSourceModelElementEndpointReferenceAdaptable(IAdaptable element) {
EObject modelObj = (EObject) element.getAdapter(EObject.class);
ModelElementEndpointReference modelElemEndpointRef = ((BinaryMappingReference) modelObj).getObject().getModelElemEndpointRefs().get(0);
return new ParserHintAdapter(modelElemEndpointRef, "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:8,代码来源:BinaryMappingReferenceSourceModelElementEndpointReferenceLabelParser.java
示例6: getMIDDiagramElementAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getMIDDiagramElementAdaptable(IAdaptable element) {
ExtendibleElementReference midElementRef = (ExtendibleElementReference) element.getAdapter(EObject.class);
return new ParserHintAdapter(midElementRef.getObject(), "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:7,代码来源:RelationshipDiagramCustomLabelParser.java
示例7: getExtendibleElementAdaptable
import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter; //导入依赖的package包/类
protected IAdaptable getExtendibleElementAdaptable(IAdaptable element) {
ExtendibleElementReference midElementRef = (ExtendibleElementReference) element.getAdapter(EObject.class);
return new ParserHintAdapter(midElementRef.getObject(), "");
}
开发者ID:adisandro,项目名称:MMINT,代码行数:7,代码来源:ExtendibleElementReferenceLabelParser.java
注:本文中的org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论