|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.service.align.internal.AlignmentServiceDecorator
eu.esdihumboldt.hale.ui.service.align.internal.AlignmentServiceUndoSupport
public class AlignmentServiceUndoSupport
Decorator that adds undo/redo support to an alignment service.
Nested Class Summary | |
---|---|
class |
AlignmentServiceUndoSupport.AddCellOperation
Operation that adds a cell to the alignment service. |
class |
AlignmentServiceUndoSupport.CleanOperation
Operation that cleans the alignment. |
class |
AlignmentServiceUndoSupport.RemoveCellOperation
Operations that removes a cell from the alignment service. |
class |
AlignmentServiceUndoSupport.ReplaceOperation
Operation that replaces a cell in the alignment. |
Field Summary |
---|
Fields inherited from class eu.esdihumboldt.hale.ui.service.align.internal.AlignmentServiceDecorator |
---|
alignmentService |
Constructor Summary | |
---|---|
AlignmentServiceUndoSupport(AlignmentService alignmentService)
Create undo/redo support for the given alignment service. |
Method Summary | |
---|---|
void |
addCell(MutableCell cell)
Adds the given cell to the current alignment. |
void |
addOrUpdateAlignment(MutableAlignment alignment)
Adds the cells contained in the given alignment to the current alignment. |
void |
clean()
Invoke this operation if you want to clear out all alignments stored. |
protected void |
executeOperation(org.eclipse.core.commands.operations.IUndoableOperation operation)
Execute an operation. |
void |
removeCells(Cell... cells)
Removes the given cells |
void |
replaceCell(Cell oldCell,
MutableCell newCell)
Replace a cell with a new cell. |
Methods inherited from class eu.esdihumboldt.hale.ui.service.align.internal.AlignmentServiceDecorator |
---|
addListener, getAlignment, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlignmentServiceUndoSupport(AlignmentService alignmentService)
alignmentService
- the alignment serviceMethod Detail |
---|
protected void executeOperation(org.eclipse.core.commands.operations.IUndoableOperation operation)
operation
- the operation to executepublic void addOrUpdateAlignment(MutableAlignment alignment)
AlignmentService
addOrUpdateAlignment
in interface AlignmentService
addOrUpdateAlignment
in class AlignmentServiceDecorator
alignment
- the alignment to addAlignmentServiceDecorator.addOrUpdateAlignment(MutableAlignment)
public void addCell(MutableCell cell)
AlignmentService
addCell
in interface AlignmentService
addCell
in class AlignmentServiceDecorator
cell
- the cell to addAlignmentServiceDecorator.addCell(MutableCell)
public void removeCells(Cell... cells)
AlignmentService
removeCells
in interface AlignmentService
removeCells
in class AlignmentServiceDecorator
cells
- the cells to removeAlignmentServiceDecorator.removeCells(Cell[])
public void clean()
AlignmentService
clean
in interface AlignmentService
clean
in class AlignmentServiceDecorator
AlignmentServiceDecorator.clean()
public void replaceCell(Cell oldCell, MutableCell newCell)
AlignmentService
replaceCell
in interface AlignmentService
replaceCell
in class AlignmentServiceDecorator
oldCell
- the old cell that should be removed from the alignmentnewCell
- the new cell that should be added to the alignmentAlignmentServiceDecorator.replaceCell(Cell, MutableCell)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |