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)