if (content == null) {
instance = metaclass.newInstance(new Object[] { swtObject });
invokeCreatededAction(element, instance);
if (instance instanceof TableEditor) {
// TODO should be moved into IMetaclass
TableEditor tableEditor = (TableEditor) instance;
if (swtObject instanceof TableItem) {
TableItem item = (TableItem) swtObject;
tableEditor.setItem(item);
for (DocumentObject doc : element.getChildren()) {
Control control = (Control) doCreate(
((TableItem) swtObject).getParent(),
(Element) doc, null, EMPTY_MAP);
tableEditor.setEditor(control);
int column = getColumnValue(element);
TableEditorHelper.initEditor(item, control, column);
}
}
}