part = originalPart;
IFigure figure = ((GraphicalEditPart) originalPart).getFigure();
while (figure instanceof CSSFigure) {
if (figure.getLayoutManager() instanceof CSSTableCellLayout) {
CSSTableCellLayout cellLayout = (CSSTableCellLayout) figure
.getLayoutManager();
if (cellLayout.getTableLayout() == tableLayout) {
// ok, we found.
TableCellInfo cellInfo = cellLayout.getTableCellInfo();
if (cellInfo == null) {
return null;
}
TableOperationContext context = new TableOperationContext();
context._tablePart = tablePart;