本文整理了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
[英]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);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!