|
|||||||||
PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider
This content provider wraps an AdapterFactory
and it delegates its JFace provider interfaces to corresponding adapter-implemented item provider interfaces.
All method calls to the various structured content provider interfaces
are delegated to interfaces implemented by the adapters generated by the AdapterFactory.
IStructuredContentProvider
is delegated to IStructuredItemContentProvider
;
ITreeContentProvider
is delegated to ITreeItemContentProvider
;
and IPropertySourceProvider
to IItemPropertySource
.
Field Summary | |
protected AdapterFactory |
adapterFactory
This keeps track of the one factory we are using. |
protected org.eclipse.jface.viewers.Viewer |
viewer
This keeps track of the one viewer using this content provider. |
Constructor Summary | |
AdapterFactoryContentProvider(AdapterFactory adapterFactory)
This constructs an instance that wraps this factory. |
Method Summary | |
protected org.eclipse.ui.views.properties.IPropertySource |
createPropertySource(java.lang.Object object,
IItemPropertySource itemPropertySource)
|
void |
dispose()
This discards the content provider and removes this as a listener to the adapterFactory . |
AdapterFactory |
getAdapterFactory()
This returns the wrapped factory. |
java.lang.Object[] |
getChildren(java.lang.Object object)
This implements ITreeContentProvider .getChildren to forward the call to an object that implements
ITreeItemContentProvider.getChildren . |
java.lang.Object[] |
getElements(java.lang.Object object)
This implements IStructuredContentProvider .getElements to forward the call to an object that implements
IStructuredItemContentProvider.getElements . |
java.lang.Object |
getParent(java.lang.Object object)
This implements ITreeContentProvider .getParent to forward the call to an object that implements
ITreeItemContentProvider.getParent . |
org.eclipse.ui.views.properties.IPropertySource |
getPropertySource(java.lang.Object object)
This implements IPropertySourceProvider .getPropertySource to forward the call to an object that implements
IItemPropertySource . |
boolean |
hasChildren(java.lang.Object object)
This implements ITreeContentProvider .hasChildren to forward the call to an object that implements
ITreeItemContentProvider.hasChildren . |
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object oldInput,
java.lang.Object newInput)
The given Viewer will start (oldInput == null) or stop (newInput == null) listening for domain events. |
void |
notifyChanged(Notification notification)
|
void |
setAdapterFactory(AdapterFactory adapterFactory)
This sets the wrapped factory. |
Field Detail |
protected AdapterFactory adapterFactory
ComposedAdapterFactory
if adapters from more the one factory are involved in the model.protected org.eclipse.jface.viewers.Viewer viewer
Constructor Detail |
public AdapterFactoryContentProvider(AdapterFactory adapterFactory)
Method Detail |
public void setAdapterFactory(AdapterFactory adapterFactory)
public AdapterFactory getAdapterFactory()
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
public java.lang.Object[] getElements(java.lang.Object object)
IStructuredContentProvider
.getElements to forward the call to an object that implements
IStructuredItemContentProvider.getElements
.public java.lang.Object[] getChildren(java.lang.Object object)
ITreeContentProvider
.getChildren to forward the call to an object that implements
ITreeItemContentProvider.getChildren
.public boolean hasChildren(java.lang.Object object)
ITreeContentProvider
.hasChildren to forward the call to an object that implements
ITreeItemContentProvider.hasChildren
.public java.lang.Object getParent(java.lang.Object object)
ITreeContentProvider
.getParent to forward the call to an object that implements
ITreeItemContentProvider.getParent
.public void dispose()
adapterFactory
.public org.eclipse.ui.views.properties.IPropertySource getPropertySource(java.lang.Object object)
IPropertySourceProvider
.getPropertySource to forward the call to an object that implements
IItemPropertySource
.getPropertySource
in interface org.eclipse.ui.views.properties.IPropertySourceProvider
protected org.eclipse.ui.views.properties.IPropertySource createPropertySource(java.lang.Object object, IItemPropertySource itemPropertySource)
public void notifyChanged(Notification notification)
notifyChanged
in interface INotifyChangedListener
|
Copyright 2001-2002 IBM Corporation and others. All Rights Reserved. |
||||||||
PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |