Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 74dc5fdf07ffba6b41eb93dcb67d24f051922cc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*****************************************************************************
 * Copyright (c) 2012 CEA LIST.
 *
 *    
 * 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:
 *  Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.uml.compare.merger.internal.utils;

import org.eclipse.emf.common.notify.impl.AdapterImpl;


 /**
 * duplicate code from Efactory
 * This adapter will be used to remember the accurate position of an EObject in its target list.
 * 
 * @author <a href="mailto:laurent.goubet@obeo.fr">Laurent Goubet</a>
 */
public class PositionAdapter extends AdapterImpl {

	/** The index at which we expect to find this object. */
	private final int expectedIndex;

	/**
	 * Creates our adapter.
	 * 
	 * @param index
	 *        The index at which we expect to find this object.
	 */
	public PositionAdapter(final int index) {
		this.expectedIndex = index;
	}

	/**
	 * Returns the index at which we expect to find this object.
	 * 
	 * @return The index at which we expect to find this object.
	 */
	public int getExpectedIndex() {
		return expectedIndex;
	}
}

Back to the top