blob: 47f6c7adb77745cf4f588a18d4bbcfa37d737bee [file] [log] [blame]
/*
* Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
* Simon McDuff - maintenance
*/
package org.eclipse.emf.cdo.internal.common.revision;
import org.eclipse.emf.cdo.common.revision.CDOElementProxy;
import java.text.MessageFormat;
/**
* @author Eike Stepper
*/
public final class CDOElementProxyImpl implements CDOElementProxy
{
private int index;
public CDOElementProxyImpl(int index)
{
this.index = index;
}
public int getIndex()
{
return index;
}
public void setIndex(int index)
{
this.index = index;
}
@Override
public String toString()
{
return MessageFormat.format("CDOElementProxy[{0}]", index); //$NON-NLS-1$
}
}