获取错误List <eobject>类型中的方法add(EObject)不适用于参数(Object)

时间:2016-11-18 03:35:25

标签: eclipse eclipse-emf

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 );
}
  

错误:类型List中的方法add(EObject)不适用于参数(Object)

0 个答案:

没有答案