|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.BasicNotifierImpl org.eclipse.emf.ecore.impl.BasicEObjectImpl org.eclipse.emf.ecore.impl.EObjectImpl org.eclipse.emf.emfstore.internal.server.model.versioning.impl.ChangePackageProxyImpl
public class ChangePackageProxyImpl
An implementation of the model object 'Change Package Proxy'.
The following features are implemented:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
org.eclipse.emf.ecore.InternalEObject.EStore |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
ELAST_EOBJECT_FLAG |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Method Summary | |
---|---|
void |
add(AbstractOperation operation)
Add a single operation to this change package. |
void |
addAll(List<AbstractOperation> operations)
Adds all given operations to this change package. |
void |
apply(Project project)
Applies this change package to the given project. |
void |
apply(Project project,
boolean forceApplication)
Apply all operations in the change package to the given project. |
void |
attachToProjectSpace(ChangePackageContainer changePackageHolder)
Attaches this change package to the given value. |
LogMessage |
basicGetLogMessage()
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetLogMessage(LogMessage newLogMessage,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
void |
clear()
Clears all operations from this change package. |
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
Object newValue)
|
void |
eUnset(int featureID)
|
AbstractOperation |
get(int index)
Returns the operation at the given index. |
String |
getId()
|
LogMessage |
getLogMessage()
|
boolean |
isEmpty()
Whether this change package has any operations. |
int |
leafSize()
Returns the number of leaf operations that are contained within this change package. |
ESCloseableIterable<AbstractOperation> |
operations()
Returns a handle for iterating through operations contained in this change package. NOTE: Callers must call close on the returned handle. |
List<AbstractOperation> |
removeAtEnd(int n)
Removes the given number of operations starting from the end. |
AbstractChangePackage |
reverse()
Creates a copy of the change package and reverses it. |
ESCloseableIterable<AbstractOperation> |
reversedOperations()
Returns a handle for iterating through operations contained in this change package backwards. NOTE: Callers must call close on the returned handle. |
void |
save()
Save this change package. |
void |
setId(String newId)
|
void |
setLogMessage(LogMessage newLogMessage)
|
int |
size()
Returns the size of this change package, that is, how many operations are contained in it. |
ESChangePackage |
toAPI()
Returns the API representation of this change package. |
String |
toString()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
eNotificationRequired |
Method Detail |
---|
public LogMessage getLogMessage()
getLogMessage
in interface AbstractChangePackage
AbstractChangePackage.setLogMessage(LogMessage)
,
VersioningPackage.getAbstractChangePackage_LogMessage()
public LogMessage basicGetLogMessage()
public org.eclipse.emf.common.notify.NotificationChain basicSetLogMessage(LogMessage newLogMessage, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setLogMessage(LogMessage newLogMessage)
setLogMessage
in interface AbstractChangePackage
newLogMessage
- the new value of the 'Log Message' containment reference.AbstractChangePackage.getLogMessage()
public String getId()
getId
in interface ChangePackageProxy
ChangePackageProxy.setId(String)
,
VersioningPackage.getChangePackageProxy_Id()
public void setId(String newId)
setId
in interface ChangePackageProxy
newId
- the new value of the 'Id' attribute.ChangePackageProxy.getId()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID, Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public String toString()
toString
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void add(AbstractOperation operation)
add
in interface AbstractChangePackage
operation
- the operation to be addedAbstractChangePackage.add(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)
public void addAll(List<AbstractOperation> operations)
addAll
in interface AbstractChangePackage
operations
- the operations to be addedAbstractChangePackage.addAll(java.util.List)
public AbstractChangePackage reverse()
reverse
in interface AbstractChangePackage
AbstractChangePackage.reverse()
public int size()
size
in interface AbstractChangePackage
AbstractChangePackage.size()
public int leafSize()
leafSize
in interface AbstractChangePackage
AbstractChangePackage.leafSize()
public ESCloseableIterable<AbstractOperation> operations()
close
on the returned handle.
operations
in interface AbstractChangePackage
AbstractChangePackage.operations()
public ESCloseableIterable<AbstractOperation> reversedOperations()
close
on the returned handle.
reversedOperations
in interface AbstractChangePackage
AbstractChangePackage.reversedOperations()
public boolean isEmpty()
isEmpty
in interface AbstractChangePackage
true
, if this change package is empty, false
otherwiseAbstractChangePackage.isEmpty()
public List<AbstractOperation> removeAtEnd(int n)
removeAtEnd
in interface AbstractChangePackage
n
- the number of operations to be removed
AbstractChangePackage.removeAtEnd(int)
public void clear()
clear
in interface AbstractChangePackage
AbstractChangePackage.clear()
public void attachToProjectSpace(ChangePackageContainer changePackageHolder)
attachToProjectSpace
in interface AbstractChangePackage
changePackageHolder
- the value to which this change package will be attached toAbstractChangePackage.attachToProjectSpace(org.eclipse.emf.emfstore.internal.server.model.versioning.impl.persistent.ChangePackageContainer)
public ESChangePackage toAPI()
toAPI
in interface AbstractChangePackage
AbstractChangePackage.toAPI()
public void apply(Project project)
apply
in interface AbstractChangePackage
project
- the project upon which the change package should be appliedAbstractChangePackage.apply(org.eclipse.emf.emfstore.internal.common.model.Project)
public void apply(Project project, boolean forceApplication)
apply
in interface AbstractChangePackage
project
- the projectforceApplication
- if true, illegal Operations won't stop the other to be appliedAbstractChangePackage.apply(org.eclipse.emf.emfstore.internal.common.model.Project,
boolean)
public void save() throws IOException
save
in interface AbstractChangePackage
IOException
- in case saving failsAbstractChangePackage.save()
public AbstractOperation get(int index)
get
in interface AbstractChangePackage
index
- the requested index
AbstractChangePackage.get(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |