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

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

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

ResourceImpl.doUnload介绍

[英]Does all the work of unloading the resource. It calls #unloaded for each object it the content #getAllContents, and clears the #getContents, #getErrors, and #getWarnings.
[中]完成卸载资源的所有工作。它为每个对象调用#卸载内容#getAllContents,并清除#getContents、#getErrors和#getWarnings。

代码示例

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

@Override
protected void doUnload() {
  super.doUnload();
  parseResult = null;
}

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

/**
 * Does all the work of unloading the resource. It calls doUnload in
 * ResourceImpl, then it clears {@link #idToEObjectMap} and {@link #eObjectToIDMap} as necessary.
 */
@Override
protected void doUnload()
{
 super.doUnload();
 if (idToEObjectMap != null)
 {
  idToEObjectMap.clear();
 }
 if (eObjectToIDMap != null)
 {
  eObjectToIDMap.clear();
 }
 if (eObjectToExtensionMap != null)
 {
  eObjectToExtensionMap.clear();
 }
}

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

/**
 * Does all the work of unloading the resource. It calls doUnload in
 * ResourceImpl, then it clears {@link #idToEObjectMap} and {@link #eObjectToIDMap} as necessary.
 */
@Override
protected void doUnload()
{
 super.doUnload();
 if (idToEObjectMap != null)
 {
  idToEObjectMap.clear();
 }
 if (eObjectToIDMap != null)
 {
  eObjectToIDMap.clear();
 }
 if (eObjectToExtensionMap != null)
 {
  eObjectToExtensionMap.clear();
 }
}

代码示例来源: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);
  }
 }
}

相关文章

微信公众号

最新文章

更多