Bug 314685 EModelService's findElements(MUIElement, String, Class<T>, List<String>) method can return duplicates
I'm getting two editors in the returned list that's pointing at the same thing. The returned collection is a List and not a Set but this feels wrong.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EModelServiceFindTest.java
List<MUIElement> unmatchedTags = modelService.findElements(application,
				null, null, tags);
		assertEquals(unmatchedTags.size(), 0);
	}
	public void testFindElementsCombinations() {
		MApplication application = createApplication();
		EModelService modelService = (EModelService) application.getContext()
				.get(EModelService.class.getName());
		assertNotNull(modelService);
		List<String> tags = new ArrayList<String>();
		tags.add("oneValidTag");
		List<MPartSashContainer> idAndType = modelService.findElements(
				application, "twoValidIds", MPartSashContainer.class, tags);
		assertEquals(idAndType.size(), 1);
		List<MPartSashContainer> typeAndTag = modelService.findElements(
				application, null, MPartSashContainer.class, tags);
		assertEquals(typeAndTag.size(), 1);
		List<MUIElement> idAndTag = modelService.findElements(application,
				"twoValidIds", null, tags);
		assertEquals(idAndTag.size(), 1);
		List<MPartSashContainer> idAndTypeAndTags = modelService.findElements(
				application, "twoValidIds", MPartSashContainer.class, null);
		assertEquals(idAndTypeAndTags.size(), 1);
		List<MPartSashContainer> badIdAndTypeAndTags = modelService
				.findElements(application, "invalidId",
						MPartSashContainer.class, null);
		assertEquals(badIdAndTypeAndTags.size(), 0);
	}
}