diff options
Diffstat (limited to 'rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/CElement.java')
-rwxr-xr-x | rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/CElement.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/CElement.java b/rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/CElement.java index 6279c4aea..41c7230f0 100755 --- a/rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/CElement.java +++ b/rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/CElement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2010 IBM Corporation and others. + * Copyright (c) 2008, 2012 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 @@ -269,6 +269,12 @@ public abstract class CElement implements ICElement, Serializable, IHasManagedLo } } + if (o instanceof CElement) { + if (((CElement)o).getIndex() != getIndex()) { + return false; + } + } + ICElement parent = other.getParent(); if (fParent != null && !fParent.equals(parent)) { return false; |