Skip to content

Commit

Permalink
[1831] Requirement Imported in ReqIf Format shall keep their order in
Browse files Browse the repository at this point in the history
the Project explorer

Bug: 1831
Change-Id: I9d3949bac14ae933c82defd77aa11d28b8b8222f
Signed-off-by: Jeremy Aubry <jaubry@obeo.fr>
  • Loading branch information
jaubry-obeo committed Nov 10, 2017
1 parent 9cb5b13 commit 2c7f50f
Showing 1 changed file with 12 additions and 11 deletions.
@@ -1,18 +1,19 @@
/*******************************************************************************
* Copyright (c) 2006, 2016 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Thales - initial API and implementation
*******************************************************************************/
/*******************************************************************************
* Copyright (c) 2006, 2017 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Thales - initial API and implementation
*******************************************************************************/

package org.polarsys.capella.common.helpers.query;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

Expand Down Expand Up @@ -56,7 +57,7 @@ public Set<EObject> getAll(EObject source, Class<?> targetType) {
*/

public Set<EObject> getAllFiltered(EObject source, EClass targetType, List<EClass> filter) {
Set<EObject> result = new HashSet<EObject>(1);
Set<EObject> result = new LinkedHashSet<EObject>();

if (source == null || targetType == null)
return result;
Expand Down

0 comments on commit 2c7f50f

Please sign in to comment.