|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IWriteableMergeResult
Extension interface of IMergeResult which allows IMergeStrategys to
incrementally build and modify the final IMergeResult of a merge operation.
All IClone instance lists which are part of the IMergeResultPerspectives
and the ICloneFile instance which can be obtained from an IWriteableMergeResult
(via the getters defined in IMergeResult) may be freely modified by an IMergeStrategy.
NOTE: The IMergeResult.getMergedClones() list must not be modified by a strategy.
It is a cached, read-only list which is generated on demand.
| Nested Class Summary | |
|---|---|
static class |
IWriteableMergeResult.Type
Specifies how a clone was affected by the merge operation. |
| Nested classes/interfaces inherited from interface org.electrocodeogram.cpc.core.api.provider.merge.IMergeResult |
|---|
IMergeResult.Status |
| Method Summary | |
|---|---|
void |
addClone(IClone clone,
IWriteableMergeResult.Type localType,
IWriteableMergeResult.Type remoteType)
Adds the given clone to the clone lists of the local and remote perspective which correspond to the given types. |
void |
addCloneLocal(IClone clone,
IWriteableMergeResult.Type localType)
Adds the given clone to the clone lists of the local perspective which correspond to the given type. |
void |
addCloneRemote(IClone clone,
IWriteableMergeResult.Type remoteType)
Adds the given clone to the clone lists of the remote perspective which correspond to the given type. |
void |
addClones(java.util.Collection<IClone> clones,
IWriteableMergeResult.Type localType,
IWriteableMergeResult.Type remoteType)
Adds the given clones to the clone lists of the local and remote perspective which correspond to the given types. |
void |
addClonesLocal(java.util.Collection<IClone> clones,
IWriteableMergeResult.Type localType)
Adds the given clones to the clone lists of the local perspective which correspond to the given type. |
void |
addClonesRemote(java.util.Collection<IClone> clones,
IWriteableMergeResult.Type remoteType)
Adds the given clones to the clone lists of the remote perspective which correspond to the given type. |
void |
setStatus(IMergeResult.Status status)
Sets the new status for this merge. |
| Methods inherited from interface org.electrocodeogram.cpc.core.api.provider.merge.IMergeResult |
|---|
getCloneFile, getLocalPerspective, getMergedClones, getRemotePerspective, getStatus, isFullyMerged, toString |
| Method Detail |
|---|
void setStatus(IMergeResult.Status status)
IMergeResult.Status#NO_MERGE.
status - the new status for the merge operation, never null.
void addClone(IClone clone,
IWriteableMergeResult.Type localType,
IWriteableMergeResult.Type remoteType)
void addClones(java.util.Collection<IClone> clones,
IWriteableMergeResult.Type localType,
IWriteableMergeResult.Type remoteType)
void addCloneLocal(IClone clone,
IWriteableMergeResult.Type localType)
void addClonesLocal(java.util.Collection<IClone> clones,
IWriteableMergeResult.Type localType)
void addCloneRemote(IClone clone,
IWriteableMergeResult.Type remoteType)
void addClonesRemote(java.util.Collection<IClone> clones,
IWriteableMergeResult.Type remoteType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||