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
assertEquals(elements1.size(), 1);
		List<MUIElement> elements2 = modelService.findElements(application,
				"twoValidIds", null, null);
		assertEquals(elements2.size(), 2);
		List<MUIElement> elements3 = modelService.findElements(application,
				"invalidId", null, null);
		assertEquals(elements3.size(), 0);
	}
	public void testFindElementsTypeOnly() {
		MApplication application = createApplication();
		EModelService modelService = (EModelService) application.getContext()
				.get(EModelService.class.getName());
		assertNotNull(modelService);
		List<MPart> parts = modelService.findElements(application, null,
				MPart.class, null);
		assertEquals(parts.size(), 3);
		List<MPartStack> stacks = modelService.findElements(application, null,
				MPartStack.class, null);
		assertEquals(stacks.size(), 1);
		List<MDirtyable> dirtyableElements = modelService.findElements(
				application, null, MDirtyable.class, null);
		assertEquals(dirtyableElements.size(), 3);
		
		List<MUIElement> uiElements = modelService.findElements(application,
				null, null, null);
		assertEquals(uiElements.size(), 7);
		
		List<String> strings = modelService.findElements(application, null,
				String.class, null);
		assertEquals(strings.size(), 0);