Prevents loading twice the same model in a NotLoadingResourceSet.79/34279/7
commit0cbed3380c41e8ae1a46f5c7ad201b946f48d1b8
authorArthur Daussy <arthur.daussy@obeo.fr>
Thu, 2 Oct 2014 13:00:25 +0000 (2 15:00 +0200)
committerLaurent Goubet <laurent.goubet@obeo.fr>
Tue, 14 Oct 2014 07:21:44 +0000 (14 03:21 -0400)
tree20a794c58a05fc0f97d933d3629dcb887fcfaa60
parentf1b5787317037ab5b617286145e5e323c85e6e6e
Prevents loading twice the same model in a NotLoadingResourceSet.

The previsous getResource(IStorage,boolean) method did not check if a
resource was already loaded. It may happen that the same resource was
created twice in the same ResourceSet (with the exact same uri).

This commit also changes the way IStorage are loaded in the resource
set. The IStorages are now loaded using their uris. The resource set is
aware of the resources that should be loaded from a IStorage.

Change-Id: I5fe2f837c7a0c3ff522ee3d382e4b3dc7fc4b9d9
Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/ide_messages.properties
plugins/org.eclipse.emf.compare.ide/src/org/eclipse/emf/compare/ide/internal/utils/NotLoadingResourceSet.java
plugins/org.eclipse.emf.compare.uml2.ide.tests/src/org/eclipse/emf/compare/uml2/ide/tests/profile/ProfileLoadingTest.java