public class ModelObjectAdapter extends TranslatorAdapter implements org.eclipse.emf.common.notify.Adapter, org.eclipse.wst.sse.core.internal.provisional.INodeAdapter
node
Constructor and Description |
---|
ModelObjectAdapter(SSESyncResource resource,
org.eclipse.emf.ecore.EObject eobject,
Element node) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.notify.Notifier |
getTarget() |
boolean |
isAdapterForType(Object type) |
void |
load()
Populates all child model objects from the child nodes in the dom tree.
|
void |
notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier,
int eventType,
Object changedFeature,
Object oldValue,
Object newValue,
int pos) |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
void |
save()
Populates all child dom objects from the model children.
|
void |
setTarget(org.eclipse.emf.common.notify.Notifier target) |
void |
update(Object oldValue,
Object newValObject,
int index) |
absoluteIndexOf, createWSAfter, createWSBefore, formatNode, getElementText, getFirstChildWithName, getNode, getNthChildWithName, namedIndexOf, removeChildElement, setNode
public ModelObjectAdapter(SSESyncResource resource, org.eclipse.emf.ecore.EObject eobject, Element node)
public boolean isAdapterForType(Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
isAdapterForType
in interface org.eclipse.wst.sse.core.internal.provisional.INodeAdapter
public void notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue, Object newValue, int pos)
notifyChanged
in interface org.eclipse.wst.sse.core.internal.provisional.INodeAdapter
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void update(Object oldValue, Object newValObject, int index)
update
in class TranslatorAdapter
public void load()
load
in class TranslatorAdapter
public void save()
save
in class TranslatorAdapter
public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
public void setTarget(org.eclipse.emf.common.notify.Notifier target)
setTarget
in interface org.eclipse.emf.common.notify.Adapter
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.