/*******************************************************************************
* Copyright (c) 2008, 2009 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.eef.mapping.provider;
import java.util.Collection;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.eef.mapping.MappingFactory;
import org.eclipse.emf.eef.mapping.MappingPackage;
/**
* This is the item provider adapter for a {@link org.eclipse.emf.eef.mapping.Category} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class CategoryCustomItemProvider extends CategoryItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CategoryCustomItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(
Collection<Object> newChildDescriptors, Object object) {
newChildDescriptors.add(createChildParameter(
MappingPackage.Literals.CATEGORY__CATEGORIES,
MappingFactory.eINSTANCE.createCategory()));
}
}