当前位置: 动力学知识库 > 问答 > 编程问答 >

eclipse - Getting error The method add(EObject) in the type List<EObject> is not applicable for the arguments (Object)

问题描述:

while( iter.hasNext() ) {

Object obj = iter.next();

URI uri = CommonResourceHelper.getInstance().getPlatformURI( adaptationID, adaptationID + getExtension( obj ) );

Resource rsrc = rsrcSet.createResource( uri );

rsrc.getContents().add( obj ); //getting error in this line

CommonResourceHelper.getInstance().save( rsrc );

}

Error: The method add(EObject) in the type List is not applicable for the arguments (Object)

分享给朋友:
您可能感兴趣的文章:
随机阅读: