Skip to content

Commit

Permalink
[1843] Fix property tester for isRecElement, isRplElement
Browse files Browse the repository at this point in the history
Change-Id: I5110f0707a4340922de1fec77f11363bc2daa228
Signed-off-by: Felix Dorner <felix.dorner@gmail.com>
  • Loading branch information
felixdo committed Mar 21, 2018
1 parent 142d639 commit 1f8d518
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016 THALES GLOBAL SERVICES.
* Copyright (c) 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
Expand Down Expand Up @@ -105,7 +105,7 @@ private boolean isRecElement(Object receiver) {
if (receiver instanceof EObject) {
for (CatalogElementLink link : EObjectExt.<CatalogElementLink> getReferencers((EObject) receiver,
RePackage.Literals.CATALOG_ELEMENT_LINK__TARGET)) {
if (isRecCatalogElement(link.getOrigin())) {
if (isRecCatalogElement(link.getSource())) {
return true;
}
}
Expand All @@ -125,7 +125,7 @@ private boolean isRplElement(Object receiver) {
if (receiver instanceof EObject) {
for (CatalogElementLink link : EObjectExt.<CatalogElementLink> getReferencers((EObject) receiver,
RePackage.Literals.CATALOG_ELEMENT_LINK__TARGET)) {
if (isRplCatalogElement(link.getOrigin())) {
if (isRplCatalogElement(link.getSource())) {
return true;
}
}
Expand Down

0 comments on commit 1f8d518

Please sign in to comment.