public class CoffeeItemProviderAdapterFactory extends CoffeeAdapterFactory implements org.eclipse.emf.edit.provider.ComposeableAdapterFactory, org.eclipse.emf.edit.provider.IChangeNotifier, org.eclipse.emf.edit.provider.IDisposable
fireNotifyChanged
.
The adapters also support Eclipse property sheets.
Note that most of the adapters are shared among multiple instances.
Modifier and Type | Field and Description |
---|---|
protected ActivityItemProvider |
activityItemProvider
This keeps track of the one adapter used for all
Activity
instances. |
protected BrewingUnitItemProvider |
brewingUnitItemProvider
This keeps track of the one adapter used for all
BrewingUnit
instances. |
protected org.eclipse.emf.edit.provider.IChangeNotifier |
changeNotifier
This is used to implement
IChangeNotifier . |
protected ControlUnitItemProvider |
controlUnitItemProvider
This keeps track of the one adapter used for all
ControlUnit
instances. |
protected DimensionItemProvider |
dimensionItemProvider
This keeps track of the one adapter used for all
Dimension
instances. |
protected DipTrayItemProvider |
dipTrayItemProvider
This keeps track of the one adapter used for all
DipTray
instances. |
protected DisplayItemProvider |
displayItemProvider
This keeps track of the one adapter used for all
Display
instances. |
protected MachineItemProvider |
machineItemProvider
This keeps track of the one adapter used for all
Machine
instances. |
protected org.eclipse.emf.edit.provider.ComposedAdapterFactory |
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.
|
protected ProcessorItemProvider |
processorItemProvider
This keeps track of the one adapter used for all
Processor
instances. |
protected RAMItemProvider |
ramItemProvider
This keeps track of the one adapter used for all
RAM instances. |
protected Collection<Object> |
supportedTypes
This keeps track of all the supported types checked by
isFactoryForType . |
protected WaterTankItemProvider |
waterTankItemProvider
This keeps track of the one adapter used for all
WaterTank
instances. |
modelPackage, modelSwitch
Constructor and Description |
---|
CoffeeItemProviderAdapterFactory()
This constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.notify.Adapter |
adapt(org.eclipse.emf.common.notify.Notifier notifier,
Object type)
This implementation substitutes the factory itself as the key for the adapter.
|
Object |
adapt(Object object,
Object type) |
void |
addListener(org.eclipse.emf.edit.provider.INotifyChangedListener notifyChangedListener)
This adds a listener.
|
org.eclipse.emf.common.notify.Adapter |
createActivityAdapter()
This creates an adapter for a
Activity . |
org.eclipse.emf.common.notify.Adapter |
createBrewingUnitAdapter()
This creates an adapter for a
BrewingUnit . |
org.eclipse.emf.common.notify.Adapter |
createControlUnitAdapter()
This creates an adapter for a
ControlUnit . |
org.eclipse.emf.common.notify.Adapter |
createDimensionAdapter()
This creates an adapter for a
Dimension . |
org.eclipse.emf.common.notify.Adapter |
createDipTrayAdapter()
This creates an adapter for a
DipTray . |
org.eclipse.emf.common.notify.Adapter |
createDisplayAdapter()
This creates an adapter for a
Display . |
org.eclipse.emf.common.notify.Adapter |
createMachineAdapter()
This creates an adapter for a
Machine . |
org.eclipse.emf.common.notify.Adapter |
createProcessorAdapter()
This creates an adapter for a
Processor . |
org.eclipse.emf.common.notify.Adapter |
createRAMAdapter()
This creates an adapter for a
RAM . |
org.eclipse.emf.common.notify.Adapter |
createWaterTankAdapter()
This creates an adapter for a
WaterTank . |
void |
dispose()
This disposes all of the item providers created by this factory.
|
void |
fireNotifyChanged(org.eclipse.emf.common.notify.Notification notification)
This delegates to
changeNotifier and to parentAdapterFactory . |
org.eclipse.emf.edit.provider.ComposeableAdapterFactory |
getRootAdapterFactory()
This returns the root adapter factory that contains this factory.
|
boolean |
isFactoryForType(Object type) |
void |
removeListener(org.eclipse.emf.edit.provider.INotifyChangedListener notifyChangedListener)
This removes a listener.
|
void |
setParentAdapterFactory(org.eclipse.emf.edit.provider.ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.
|
createAdapter, createComponentAdapter, createEObjectAdapter
adaptAllNew, adaptNew, associate, createAdapter, resolve
protected org.eclipse.emf.edit.provider.ComposedAdapterFactory parentAdapterFactory
protected org.eclipse.emf.edit.provider.IChangeNotifier changeNotifier
IChangeNotifier
.
protected Collection<Object> supportedTypes
isFactoryForType
.
protected MachineItemProvider machineItemProvider
Machine
instances.
protected ControlUnitItemProvider controlUnitItemProvider
ControlUnit
instances.
protected BrewingUnitItemProvider brewingUnitItemProvider
BrewingUnit
instances.
protected DipTrayItemProvider dipTrayItemProvider
DipTray
instances.
protected WaterTankItemProvider waterTankItemProvider
WaterTank
instances.
protected ProcessorItemProvider processorItemProvider
Processor
instances.
protected RAMItemProvider ramItemProvider
RAM
instances.
protected ActivityItemProvider activityItemProvider
Activity
instances.
protected DimensionItemProvider dimensionItemProvider
Dimension
instances.
protected DisplayItemProvider displayItemProvider
Display
instances.
public CoffeeItemProviderAdapterFactory()
public org.eclipse.emf.common.notify.Adapter createMachineAdapter()
Machine
.
createMachineAdapter
in class CoffeeAdapterFactory
Machine
public org.eclipse.emf.common.notify.Adapter createControlUnitAdapter()
ControlUnit
.
createControlUnitAdapter
in class CoffeeAdapterFactory
ControlUnit
public org.eclipse.emf.common.notify.Adapter createBrewingUnitAdapter()
BrewingUnit
.
createBrewingUnitAdapter
in class CoffeeAdapterFactory
BrewingUnit
public org.eclipse.emf.common.notify.Adapter createDipTrayAdapter()
DipTray
.
createDipTrayAdapter
in class CoffeeAdapterFactory
DipTray
public org.eclipse.emf.common.notify.Adapter createWaterTankAdapter()
WaterTank
.
createWaterTankAdapter
in class CoffeeAdapterFactory
WaterTank
public org.eclipse.emf.common.notify.Adapter createProcessorAdapter()
Processor
.
createProcessorAdapter
in class CoffeeAdapterFactory
Processor
public org.eclipse.emf.common.notify.Adapter createRAMAdapter()
RAM
.
createRAMAdapter
in class CoffeeAdapterFactory
RAM
public org.eclipse.emf.common.notify.Adapter createActivityAdapter()
Activity
.
createActivityAdapter
in class CoffeeAdapterFactory
Activity
public org.eclipse.emf.common.notify.Adapter createDimensionAdapter()
Dimension
.
createDimensionAdapter
in class CoffeeAdapterFactory
Dimension
public org.eclipse.emf.common.notify.Adapter createDisplayAdapter()
Display
.
createDisplayAdapter
in class CoffeeAdapterFactory
Display
public org.eclipse.emf.edit.provider.ComposeableAdapterFactory getRootAdapterFactory()
getRootAdapterFactory
in interface org.eclipse.emf.edit.provider.ComposeableAdapterFactory
public void setParentAdapterFactory(org.eclipse.emf.edit.provider.ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory
in interface org.eclipse.emf.edit.provider.ComposeableAdapterFactory
public boolean isFactoryForType(Object type)
isFactoryForType
in interface org.eclipse.emf.common.notify.AdapterFactory
isFactoryForType
in class CoffeeAdapterFactory
public org.eclipse.emf.common.notify.Adapter adapt(org.eclipse.emf.common.notify.Notifier notifier, Object type)
adapt
in interface org.eclipse.emf.common.notify.AdapterFactory
adapt
in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
public Object adapt(Object object, Object type)
adapt
in interface org.eclipse.emf.common.notify.AdapterFactory
adapt
in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
public void addListener(org.eclipse.emf.edit.provider.INotifyChangedListener notifyChangedListener)
addListener
in interface org.eclipse.emf.edit.provider.IChangeNotifier
public void removeListener(org.eclipse.emf.edit.provider.INotifyChangedListener notifyChangedListener)
removeListener
in interface org.eclipse.emf.edit.provider.IChangeNotifier
public void fireNotifyChanged(org.eclipse.emf.common.notify.Notification notification)
changeNotifier
and to parentAdapterFactory
.
fireNotifyChanged
in interface org.eclipse.emf.edit.provider.IChangeNotifier
public void dispose()
dispose
in interface org.eclipse.emf.edit.provider.IDisposable
Copyright © 2019. All rights reserved.