blob: 3e8dc51a32bb9411c6749ce56973660874d83996 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2008 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 API and implementation
*******************************************************************************/
package org.eclipse.wst.xsd.ui.internal.adapters;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.gef.commands.Command;
import org.eclipse.wst.xsd.ui.internal.adt.facade.IADTObject;
import org.eclipse.wst.xsd.ui.internal.adt.facade.IModel;
import org.eclipse.xsd.XSDConcreteComponent;
public class XSDAnyTypeDefinitionAdapter extends XSDTypeDefinitionAdapter
{
public boolean isComplexType()
{
return false;
}
public boolean isFocusAllowed()
{
return false;
}
public String[] getActions(Object object)
{
return null;
}
public boolean isAnonymous()
{
return false;
}
public IADTObject getTopContainer()
{
return null;
}
public Command getDeleteCommand()
{
return null;
}
public IModel getModel()
{
Adapter adapter = XSDAdapterFactory.getInstance().adapt(((XSDConcreteComponent)target).getSchema());
return (IModel)adapter;
}
}