Skip to content

Commit

Permalink
[2094] getDiagramElements() should not return duplicates
Browse files Browse the repository at this point in the history
Bug: 2094
Change-Id: Ic493f24b1fb082d7bb0e3bd88aeb49e2d7c49b42
Signed-off-by: Jeremy Aubry <jaubry@obeo.fr>
  • Loading branch information
jaubry-obeo authored and pdulth committed Sep 12, 2018
1 parent d5444ff commit 1d87906
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2017 THALES GLOBAL SERVICES.
* Copyright (c) 2006, 2018 THALES GLOBAL SERVICES.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -616,7 +616,7 @@ public EObject getDiagramElement(DDiagram diagram, EObject semantic) {
* @return
*/
public Collection<DSemanticDecorator> getDiagramElements(DRepresentation diagram, EObject semantic) {
Collection<DSemanticDecorator> semanticDecorators = new ArrayList<DSemanticDecorator>();
Set<DSemanticDecorator> semanticDecorators = new HashSet<>();
Session session = SessionManager.INSTANCE.getSession(semantic);

for (Setting setting : session.getSemanticCrossReferencer().getInverseReferences(semantic)) {
Expand Down

0 comments on commit 1d87906

Please sign in to comment.