blob: 4df5680216aedf8547b7881dc54d0eed46bc4085 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2002-2004 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 - Initial API and implementation
*
* </copyright>
*
* $Id: XSDSchemaCompositorItemProvider.java,v 1.3 2005/06/12 12:34:45 emerks Exp $
*/
package org.eclipse.xsd.provider;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
/**
* This is the item provider adpater for a {@link org.eclipse.xsd.XSDSchemaCompositor} object.
*/
public class XSDSchemaCompositorItemProvider
extends XSDSchemaDirectiveItemProvider
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource
{
/**
* This constructs an instance from a factory and a notifier.
*/
public XSDSchemaCompositorItemProvider(AdapterFactory adapterFactory)
{
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
*/
public List getPropertyDescriptors(Object object)
{
if (itemPropertyDescriptors == null)
{
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
* This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}.
*/
public void notifyChanged(Notification msg)
{
if (
msg.getFeature() == xsdPackage.getXSDSchemaCompositor_IncorporatedSchema()
)
{
fireNotifyChanged(msg);
return;
}
super.notifyChanged(msg);
}
}