1
프로그래밍 방식으로 EAttribute
에 EGeneric Type Argument를 추가 할 수 있습니까? 나는이 같은 EAttribute를 만들 수 있습니다 프로그래밍 방식으로 EGeneric Type Argument를 EAttribute에 추가하려면 어떻게합니까?
EAttribute eAttribute = EcoreFactory.eINSTANCE.createEAttribute();
eAttribute.setName("myAttribute");
EDataType dataType = EcorePackage.eINSTANCE.getEEList();
// add here String to List as generic argument?
eAttribute.setEType(dataType);
그러나 코드
는EEList
의 제네릭 형식 인수를 지정하지 니펫을. Eclipse에서는
New Child > EGeneric Type Argument
으로 수정 한 다음 EGeneric Type Argument의
EClassifier
을
EString
으로 설정합니다. 하지만 프로그래밍 방식으로 어떻게 할 수 있습니까? 끝에