*
* @author Miriam Sutter
*/
public ETextTableCloneService (IETextTable textTable, ITextDocument textDocument) throws CloneException {
if(textTable == null) {
throw new CloneException("The submitted table is not valid");
}
if(textDocument == null) {
throw new CloneException("The submitted text document is not valid");
}
if(!(textTable instanceof ETextTable)) {
throw new CloneException("The submitted table is not valid");
}
this.textTable = (ETextTable)textTable;
this.textDocument = textDocument;
}