public EcoreResource(File typeTarget, File instanceTarget) {
this.m_resourceSet = new ResourceSetImpl();
this.m_resourceSet.getResourceFactoryRegistry()
.getExtensionToFactoryMap()
.put("*", new XMIResourceFactoryImpl());
this.m_typeFile = typeTarget;
this.m_instanceFile = instanceTarget;
if (this.m_typeFile == this.m_instanceFile || this.m_typeFile == null
|| this.m_instanceFile == null) {
this.relPath = "";
} else {
this.relPath =
groove.io.Util.getRelativePath(new File(this.m_instanceFile.getAbsoluteFile()
.getParent()), this.m_typeFile.getAbsoluteFile())
.toString();
}
}
EcoreResource.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:JavaGraph
作者:
评论列表
文章目录