public class ChangePackageImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements ChangePackage
The following features are implemented:
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| Modifier and Type | Method and Description |
|---|---|
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)
Apply all operations in the change package to the given project.
|
void |
apply(Project project,
boolean force)
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 |
cannonize()
Cannonize the change package, that is remove all
operations that are masked by later operations.
|
void |
clear()
Clears all operations from this change package.
|
ESChangePackageImpl |
createAPI()
Creates the API interface for this class.
|
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.
|
Set<ModelElementId> |
getAllInvolvedModelElements()
Returns all model elements that are involved in this change package.
|
List<AbstractOperation> |
getCopyOfOperations()
Retrieve a copy of all operations in the change package.
|
org.eclipse.emf.common.util.EList<Event> |
getEvents() |
List<AbstractOperation> |
getLeafOperations()
Get all leaf operations of a change package, decomposing all composite
operations.
|
LogMessage |
getLogMessage() |
org.eclipse.emf.common.util.EList<AbstractOperation> |
getOperations()
Returns the operations of the change package.
|
int |
getSize()
Counts the number of Leaf Operations within this change package.
|
List<AbstractOperation> |
getTouchingOperations(ModelElementId modelElementId)
Get all operations of a change package, that are touching the given model
element id
|
org.eclipse.emf.common.util.EList<VersionProperty> |
getVersionProperties() |
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.
|
ChangePackage |
reverse()
Reverse the change package.
|
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 |
setLogMessage(LogMessage newLogMessage) |
int |
size()
Returns the size of this change package, that is, how many operations are contained in it.
|
ESChangePackageImpl |
toAPI()
Returns the API representation of this change package.
|
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURIeAllContents, 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, toStringeNotificationRequired, eNotifyequals, getClass, hashCode, notify, notifyAll, wait, wait, waiteAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetpublic org.eclipse.emf.common.util.EList<AbstractOperation> getOperations()
getOperations in interface ChangePackageVersioningPackage.getChangePackage_Operations()public org.eclipse.emf.common.util.EList<Event> getEvents()
getEvents in interface ChangePackageVersioningPackage.getChangePackage_Events()public LogMessage getLogMessage()
getLogMessage in interface AbstractChangePackageAbstractChangePackage.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 AbstractChangePackagenewLogMessage - the new value of the 'Log Message' containment reference.AbstractChangePackage.getLogMessage()public org.eclipse.emf.common.util.EList<VersionProperty> getVersionProperties()
getVersionProperties in interface ChangePackageVersioningPackage.getChangePackage_VersionProperties()public ChangePackage reverse()
reverse in interface AbstractChangePackagereverse in interface ChangePackagepublic void apply(Project project)
apply in interface AbstractChangePackageapply in interface ChangePackageproject - the projectChangePackage.apply(org.eclipse.emf.emfstore.internal.common.model.Project)public void apply(Project project, boolean force)
apply in interface AbstractChangePackageapply in interface ChangePackageproject - the projectforce - if true, illegal Operations won't stop the other to be appliedChangePackage.apply(org.eclipse.emf.emfstore.internal.common.model.Project,
boolean)public void cannonize()
cannonize in interface ChangePackagepublic 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.BasicEObjectImplpublic Object eGet(int featureID, boolean resolve, boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eSet(int featureID,
Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic List<AbstractOperation> getCopyOfOperations()
getCopyOfOperations in interface ChangePackageChangePackage.getCopyOfOperations()public List<AbstractOperation> getLeafOperations()
getLeafOperations in interface ChangePackagepublic Set<ModelElementId> getAllInvolvedModelElements()
getAllInvolvedModelElements in interface ChangePackageChangePackage.getAllInvolvedModelElements()public List<AbstractOperation> getTouchingOperations(ModelElementId modelElementId)
ChangePackagegetTouchingOperations in interface ChangePackagepublic int getSize()
ChangePackagegetSize in interface ChangePackagepublic ESChangePackageImpl toAPI()
toAPI in interface APIDelegate<ESChangePackage>toAPI in interface AbstractChangePackageAPIDelegate.toAPI()public ESChangePackageImpl createAPI()
createAPI in interface APIDelegate<ESChangePackage>APIDelegate.createAPI()public void add(AbstractOperation operation)
add in interface AbstractChangePackageoperation - 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 AbstractChangePackageoperations - the operations to be addedAbstractChangePackage.addAll(java.util.List)public int size()
size in interface AbstractChangePackageAbstractChangePackage.size()public ESCloseableIterable<AbstractOperation> operations()
close on the returned handle.operations in interface AbstractChangePackageAbstractChangePackage.operations()public ESCloseableIterable<AbstractOperation> reversedOperations()
close on the returned handle.reversedOperations in interface AbstractChangePackageAbstractChangePackage.reversedOperations()public boolean isEmpty()
isEmpty in interface AbstractChangePackagetrue, if this change package is empty, false otherwiseAbstractChangePackage.isEmpty()public List<AbstractOperation> removeAtEnd(int n)
removeAtEnd in interface AbstractChangePackagen - the number of operations to be removedAbstractChangePackage.removeAtEnd(int)public void clear()
clear in interface AbstractChangePackageAbstractChangePackage.clear()public void attachToProjectSpace(ChangePackageContainer changePackageHolder)
attachToProjectSpace in interface AbstractChangePackagechangePackageHolder - the value to which this change package will be attached toAbstractChangePackage.attachToProjectSpace(org.eclipse.emf.emfstore.internal.server.model.versioning.impl.persistent.ChangePackageContainer)public int leafSize()
leafSize in interface AbstractChangePackageAbstractChangePackage.leafSize()public void save()
throws IOException
save in interface AbstractChangePackageIOExceptionAbstractChangePackage.save()public AbstractOperation get(int index)
get in interface AbstractChangePackageindex - the requested indexAbstractChangePackage.get(int)Copyright © 2017. All rights reserved.