org.eclipse.emf.ecore.resource.impl.ResourceImpl.getUnloadingContents()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中org.eclipse.emf.ecore.resource.impl.ResourceImpl.getUnloadingContents方法的一些代码示例,展示了ResourceImpl.getUnloadingContents的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceImpl.getUnloadingContents方法的具体详情如下:
包路径:org.eclipse.emf.ecore.resource.impl.ResourceImpl
类名称:ResourceImpl
方法名:getUnloadingContents

ResourceImpl.getUnloadingContents介绍

[英]This implementation returns a copy of the #getContents(). It is called by #unload() to initialize the value of #unloadingContents. Clients populating the resource's contents on-demand can override this implementation to return an empty list when the resource's contents have not been accessed before the request to unload.
[中]此实现返回#getContents()的副本。它由#unload()调用以初始化#unloadingContents的值。当资源的内容在请求卸载之前未被访问时,按需填充资源内容的客户端可以覆盖此实现以返回空列表。

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

public final void unload()
{
 if (isLoaded)
 {
  unloadingContents = getUnloadingContents();
  Notification notification = setLoaded(false);
  try
  {
   doUnload();
  }
  finally
  {
   unloadingContents = null;
   if (notification != null)
   {
    eNotify(notification);
   }
   setTimeStamp(URIConverter.NULL_TIME_STAMP);
  }
 }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public final void unload()
{
 if (isLoaded)
 {
  unloadingContents = getUnloadingContents();
  Notification notification = setLoaded(false);
  try
  {
   doUnload();
  }
  finally
  {
   unloadingContents = null;
   if (notification != null)
   {
    eNotify(notification);
   }
   setTimeStamp(URIConverter.NULL_TIME_STAMP);
  }
 }
}

相关文章

微信公众号

最新文章

更多