/**
* Returns 'type' of the ecore object associated with the hint.
*
* @generated
*/
public static ENamedElement getElement(IAdaptable hint) {
Object type = hint.getAdapter(IElementType.class);
if (elements == null) {
elements = new IdentityHashMap<IElementType, ENamedElement>();
elements.put(Statemachine_1000,
StatemachinePackage.eINSTANCE.getStatemachine());
elements.put(State_2001, StatemachinePackage.eINSTANCE.getState());
elements.put(Transition_4001,
StatemachinePackage.eINSTANCE.getTransition());
}
return (ENamedElement) elements.get(type);
}
StatemachineElementTypes.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:xtext-gef
作者:
评论列表
文章目录