final Class clz = serialized.getClass();
parentBnd.setName(clz.getCanonicalName());
CompositeEditor editor = new CompositeEditor(parentBnd);
EditorUtility.createBindingsForType(clz, parentBnd, editor,
project);
TitledDialog td = new TitledDialog(parentBnd, editor) {
protected void okPressed() {
parentBnd.commit();
if (updater != null) {
Object value = parentBnd.getValue();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
ObjectOutputStream oos = new ObjectOutputStream(
bos);
oos.writeObject(value);
byte[] array = bos.toByteArray();
updater.updateBlob(array);
} catch (IOException e) {
Activator.log(e);
}
}
super.okPressed();
};
};
td.open();
}
}
});
}