blob: 1340d80ca575766a9e7d874143dede1671c36e2a [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 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
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.library.edit;
/**
* Interface that item provider should implement if it want to assign default
* name for each newly created child.
*
* @author Phong Nguyen Le
* @since 1.0
*/
public interface IDefaultNameSetter {
/**
* Sets default name for the given object.
*
* @param obj
*/
void setDefaultName(Object obj);
/**
* Gets the ID of the feature that contains the objects whose default name
* are assigned by this IDefaultNameSetter
*
* @return
*/
int getInterestedFeatureID();
/**
* Gets the class of the owner of the feature, whose ID is returned by
* {@link #getInterestedFeatureID() <em>getInterestedFeatureID()</em>}
*
* @return
*/
Class getInterestedFeatureOwnerClass();
}