Community
Participate
Working Groups
/*******************************************************************************
* Copyright (c) 2003, 2006 IBM Corporation and others.
* Copyright (c) 2003, 2008 IBM Corporation and others.
* 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
// we want to remove.
else if ( fragment instanceof BVRExecutionOccurrence )
{
if ( behavior.equals(((BVRExecutionOccurrence)fragment).getOtherBehavior()))
// bugzilla 201896, added the check for getOtherBehavior() returns null
// if return is null, the invocation should be deleted since it no longer
// contains a reference to an executable behavior
TPFBehavior otherBehavior = ((BVRExecutionOccurrence)fragment).getOtherBehavior();
if ( otherBehavior == null || behavior.equals(otherBehavior))
fragments.add(fragment);
}
/**********************************************************************
* Copyright (c) 2003, 2007 IBM Corporation and others.
while (iter.hasNext()) {
EObject traversedElement = (EObject) iter.next();
EObject visitorElement = getElement(traversedElement);
if (!beforeChildren(visitorElement))
if (traversedElement != null && visitorElement != null){
return false;
if (pruneSubtree)
pruneSubtree = false;
else
traverseEObject(traversedElement);
if (!afterChildren(visitorElement))
if (pruneSubtree) {
break;
return true;