|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbstractChangePackage
A representation of the model object 'Abstract Change Package'.
The following features are supported:
VersioningPackage.getAbstractChangePackage()
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. |
void |
clear()
Clears all operations from this change package. |
AbstractOperation |
get(int index)
Returns the operation at the given index. |
LogMessage |
getLogMessage()
Returns the value of the 'Log Message' containment reference. |
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 |
setLogMessage(LogMessage value)
Sets the value of the ' Log Message ' containment reference. |
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. |
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 |
Method Detail |
---|
LogMessage getLogMessage()
If the meaning of the 'Log Message' containment reference isn't clear, there really should be more of a description here...
setLogMessage(LogMessage)
,
VersioningPackage.getAbstractChangePackage_LogMessage()
void setLogMessage(LogMessage value)
Log Message
' containment reference.
value
- the new value of the 'Log Message' containment reference.getLogMessage()
void add(AbstractOperation operation)
operation
- the operation to be addedvoid addAll(List<AbstractOperation> operations)
operations
- the operations to be addedAbstractChangePackage reverse()
int size()
int leafSize()
ESCloseableIterable<AbstractOperation> operations()
close
on the returned handle.
ESCloseableIterable<AbstractOperation> reversedOperations()
close
on the returned handle.
boolean isEmpty()
true
, if this change package is empty, false
otherwiseList<AbstractOperation> removeAtEnd(int n)
n
- the number of operations to be removed
void clear()
void attachToProjectSpace(ChangePackageContainer changePackageHolder)
changePackageHolder
- the value to which this change package will be attached toESChangePackage toAPI()
void apply(Project project)
project
- the project upon which the change package should be appliedvoid apply(Project project, boolean forceApplication)
project
- the projectforceApplication
- if true, illegal Operations won't stop the other to be appliedvoid save() throws IOException
IOException
- in case saving failsAbstractOperation get(int index)
index
- the requested index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |