|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider
public class 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
.
Nested Class Summary | |
---|---|
static class |
AdapterFactoryContentProvider.ViewerRefresh
A runnable class that efficiently updates a Viewer via standard APIs, based on
queued IViewerNotification s from the model's item providers. |
Constructor Summary | |
---|---|
AdapterFactoryContentProvider(org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
This constructs an instance that wraps this factory. |
Method Summary | |
---|---|
void |
dispose()
This discards the content provider and removes this as a listener to the adapterFactory . |
org.eclipse.emf.common.notify.AdapterFactory |
getAdapterFactory()
This returns the wrapped factory. |
Object[] |
getChildren(Object object)
This implements ITreeContentProvider .getChildren to forward the call to an
object that implements ITreeItemContentProvider.getChildren . |
Object[] |
getElements(Object object)
This implements IStructuredContentProvider .getElements to
forward the call to an object that implements
IStructuredItemContentProvider.getElements . |
Object |
getParent(Object object)
This implements ITreeContentProvider .getParent to forward the call to an object
that implements ITreeItemContentProvider.getParent . |
boolean |
hasChildren(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,
Object oldInput,
Object newInput)
The given Viewer will start (oldInput == null) or stop (newInput == null) listening for domain events. |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
|
void |
setAdapterFactory(org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
This sets the wrapped factory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdapterFactoryContentProvider(org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
IChangeNotifier
,
a listener is added to it,
so it's important to call dispose()
.
Method Detail |
---|
public void setAdapterFactory(org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
IChangeNotifier
,
a listener is added to it,
so it's important to call dispose()
.
public org.eclipse.emf.common.notify.AdapterFactory getAdapterFactory()
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, Object oldInput, Object newInput)
inputChanged
in interface org.eclipse.jface.viewers.IContentProvider
public Object[] getElements(Object object)
IStructuredContentProvider
.getElements to
forward the call to an object that implements
IStructuredItemContentProvider.getElements
.
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
in interface org.eclipse.jface.viewers.ITreeContentProvider
public Object[] getChildren(Object object)
ITreeContentProvider
.getChildren to forward the call to an
object that implements ITreeItemContentProvider.getChildren
.
getChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
public boolean hasChildren(Object object)
ITreeContentProvider
.hasChildren to forward the call to an
object that implements ITreeItemContentProvider.hasChildren
.
hasChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
public Object getParent(Object object)
ITreeContentProvider
.getParent to forward the call to an object
that implements ITreeItemContentProvider.getParent
.
getParent
in interface org.eclipse.jface.viewers.ITreeContentProvider
public void dispose()
adapterFactory
.
dispose
in interface org.eclipse.jface.viewers.IContentProvider
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.edit.provider.INotifyChangedListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |