/**
*
*
*
* $Id$
*/
package org.eclipse.papyrus.infra.core.sashwindows.di.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.papyrus.infra.core.sashwindows.di.AbstractPage;
import org.eclipse.papyrus.infra.core.sashwindows.di.AbstractPanel;
import org.eclipse.papyrus.infra.core.sashwindows.di.DiPackage;
import org.eclipse.papyrus.infra.core.sashwindows.di.PageList;
import org.eclipse.papyrus.infra.core.sashwindows.di.PageRef;
import org.eclipse.papyrus.infra.core.sashwindows.di.PanelParent;
import org.eclipse.papyrus.infra.core.sashwindows.di.Position;
import org.eclipse.papyrus.infra.core.sashwindows.di.SashModel;
import org.eclipse.papyrus.infra.core.sashwindows.di.SashPanel;
import org.eclipse.papyrus.infra.core.sashwindows.di.SashWindowsMngr;
import org.eclipse.papyrus.infra.core.sashwindows.di.Size;
import org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder;
import org.eclipse.papyrus.infra.core.sashwindows.di.Window;
/**
* The Adapter Factory for the model. It provides
* an adapter createXXX
method for each class of the model.
*
* @see org.eclipse.papyrus.infra.core.sashwindows.di.DiPackage
* @generated
*/
public class DiAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
*
* @generated
*/
protected static DiPackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
* @generated
*/
public DiAdapterFactory() {
if(modelPackage == null) {
modelPackage = DiPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* This implementation returns true
if
* the object is either the model's package or is an instance object of the
* model.
*
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if(object == modelPackage) {
return true;
}
if(object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the createXXX
methods.
*
* @generated
*/
protected DiSwitch modelSwitch = new DiSwitch() {
@Override
public Adapter caseSashModel(SashModel object) {
return createSashModelAdapter();
}
@Override
public Adapter caseWindow(Window object) {
return createWindowAdapter();
}
@Override
public Adapter casePanelParent(PanelParent object) {
return createPanelParentAdapter();
}
@Override
public Adapter caseAbstractPanel(AbstractPanel object) {
return createAbstractPanelAdapter();
}
@Override
public Adapter casePosition(Position object) {
return createPositionAdapter();
}
@Override
public Adapter caseSize(Size object) {
return createSizeAdapter();
}
@Override
public Adapter caseTabFolder(TabFolder object) {
return createTabFolderAdapter();
}
@Override
public Adapter casePageRef(PageRef object) {
return createPageRefAdapter();
}
@Override
public Adapter caseSashPanel(SashPanel object) {
return createSashPanelAdapter();
}
@Override
public Adapter caseAbstractPage(AbstractPage object) {
return createAbstractPageAdapter();
}
@Override
public Adapter casePageList(PageList object) {
return createPageListAdapter();
}
@Override
public Adapter caseSashWindowsMngr(SashWindowsMngr object) {
return createSashWindowsMngrAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the target
.
*
*
* @param target
* the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.SashModel Sash Model} '. This default implementation returns null so
* that we can easily ignore cases; it's useful to ignore a case when
* inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.SashModel
* @generated
*/
public Adapter createSashModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.Window Window}'. This default implementation returns null so that we
* can easily ignore cases; it's useful to ignore a case when inheritance
* will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.Window
* @generated
*/
public Adapter createWindowAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.PanelParent
* Panel Parent}'. This default
* implementation returns null so that we can easily ignore cases; it's
* useful to ignore a case when inheritance will catch all the cases anyway.
*
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.PanelParent
* @generated
*/
public Adapter createPanelParentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.AbstractPanel
* Abstract Panel}'. This default
* implementation returns null so that we can easily ignore cases; it's
* useful to ignore a case when inheritance will catch all the cases anyway.
*
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.AbstractPanel
* @generated
*/
public Adapter createAbstractPanelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.Position Position}'.
* This default implementation returns null so that
* we can easily ignore cases; it's useful to ignore a case when inheritance
* will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.Position
* @generated
*/
public Adapter createPositionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.Size Size}'. This default implementation returns null so that we
* can easily ignore cases; it's useful to ignore a case when inheritance
* will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.Size
* @generated
*/
public Adapter createSizeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder Tab Folder} '. This default implementation returns null so
* that we can easily ignore cases; it's useful to ignore a case when
* inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder
* @generated
*/
public Adapter createTabFolderAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.PageRef Page Ref}'.
* This default implementation returns null so that
* we can easily ignore cases; it's useful to ignore a case when inheritance
* will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.PageRef
* @generated
*/
public Adapter createPageRefAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.SashPanel Sash Panel} '. This default implementation returns null so
* that we can easily ignore cases; it's useful to ignore a case when
* inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.SashPanel
* @generated
*/
public Adapter createSashPanelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.AbstractPage
* Abstract Page}'. This default
* implementation returns null so that we can easily ignore cases; it's
* useful to ignore a case when inheritance will catch all the cases anyway.
*
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.AbstractPage
* @generated
*/
public Adapter createAbstractPageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.PageList Page List}'.
* This default implementation returns null so that
* we can easily ignore cases; it's useful to ignore a case when inheritance
* will catch all the cases anyway.
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.PageList
* @generated
*/
public Adapter createPageListAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class ' {@link org.eclipse.papyrus.infra.core.sashwindows.di.SashWindowsMngr
* Sash Windows Mngr}'. This default
* implementation returns null so that we can easily ignore cases; it's
* useful to ignore a case when inheritance will catch all the cases anyway.
*
*
* @return the new adapter.
* @see org.eclipse.papyrus.infra.core.sashwindows.di.SashWindowsMngr
* @generated
*/
public Adapter createSashWindowsMngrAdapter() {
return null;
}
/**
* Creates a new adapter for the default case. This
* default implementation returns null.
*
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} // DiAdapterFactory