Eclipse plugin 在Xtext 2.9.2版本迁移后,URI顺序颠倒

Eclipse plugin 在Xtext 2.9.2版本迁移后,URI顺序颠倒,eclipse-plugin,eclipse-rcp,dsl,xtext,emf,Eclipse Plugin,Eclipse Rcp,Dsl,Xtext,Emf,最近在我的开发环境中完成了xtext迁移。资源URI列表在迁移到版本2.9.2后被反转。我使用org.eclipse.xtext.ui.resource.IStorage2UriMapper类从项目中获取特定的文件扩展名资源 迁移前:org.eclipse.xtext.ui_2.6.0.v201405210727.jar 迁移后:org.eclipse.xtext.ui_2.9.2.v201603040440.jar 输出前: /resource/example/root/B.txt /reso

最近在我的开发环境中完成了xtext迁移。资源URI列表在迁移到版本2.9.2后被反转。我使用org.eclipse.xtext.ui.resource.IStorage2UriMapper类从项目中获取特定的文件扩展名资源

迁移前:org.eclipse.xtext.ui_2.6.0.v201405210727.jar

迁移后:org.eclipse.xtext.ui_2.9.2.v201603040440.jar

输出前:

/resource/example/root/B.txt
/resource/example/root/A.txt
/resource/example/enum/enum.txt
/resource/example/data/datatype.txt
迁移后的输出:

/resource/example/data/datatype.txt
/resource/example/enum/enum.txt
/resource/example/root/A.txt
/resource/example/root/B.txt

请让我知道如何解决此问题。

您实际做了什么?请详细说明ep.s:地图通常未排序=>您可能需要手动排序,而不是我们正在生成一些xml文件的项目文件。现在,由于此文件列表的顺序相反,xml文件内容被反转。如何在映射中排序URI顺序?这更像是一个java问题而不是xtext问题?!?我的问题是如何解决这个问题我的意思是我们不能像普通的ArrayList那样对URI列表进行排序。我们需要特殊的处理来对URI进行排序(按文件夹名称排序将是递归的)。想知道从org.eclipse.xtext.ui_2.6.0.v201405210727.jar到org.eclipse.xtext.ui_2.9.2.v201404.jar的变化是什么