public class ResolveConflictCommand
extends java.lang.Object
implements org.eclipse.emf.common.command.Command
undoIt
.Constructor and Description |
---|
ResolveConflictCommand(DeltaResolver deltaResolver,
Conflict conflict,
Delta customDelta,
Resolution customDeltaResolution) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute() |
boolean |
canUndo() |
org.eclipse.emf.common.command.Command |
chain(org.eclipse.emf.common.command.Command command) |
void |
dispose() |
void |
execute()
Resolves a conflict with the given resolution delta and rejects both
conflicting deltas.
|
java.util.Collection |
getAffectedObjects() |
java.lang.String |
getDescription() |
java.lang.String |
getLabel() |
java.util.Collection |
getResult() |
void |
redo() |
ResolveConflictCommand |
setUndoable(boolean v)
Enable/disable undo possibility
|
void |
undo()
Undoes a custom resolve delta.
|
public ResolveConflictCommand(DeltaResolver deltaResolver, Conflict conflict, Delta customDelta, Resolution customDeltaResolution)
public boolean canExecute()
canExecute
in interface org.eclipse.emf.common.command.Command
public void execute()
execute
in interface org.eclipse.emf.common.command.Command
public boolean canUndo()
canUndo
in interface org.eclipse.emf.common.command.Command
public void redo()
redo
in interface org.eclipse.emf.common.command.Command
public void undo()
undo
in interface org.eclipse.emf.common.command.Command
public void dispose()
dispose
in interface org.eclipse.emf.common.command.Command
public org.eclipse.emf.common.command.Command chain(org.eclipse.emf.common.command.Command command)
chain
in interface org.eclipse.emf.common.command.Command
public java.util.Collection getAffectedObjects()
getAffectedObjects
in interface org.eclipse.emf.common.command.Command
public java.lang.String getDescription()
getDescription
in interface org.eclipse.emf.common.command.Command
public java.lang.String getLabel()
getLabel
in interface org.eclipse.emf.common.command.Command
public java.util.Collection getResult()
getResult
in interface org.eclipse.emf.common.command.Command
public ResolveConflictCommand setUndoable(boolean v)
v
-