super(parent, style);
editable = !(SWT.READ_ONLY == (style & SWT.READ_ONLY));
this.section = section;
- setStyle(DbkType.videoobject.name());
+ // set data before setting style since it creates the control
setData(node);
+ setStyle(DbkType.videoobject.name());
}
@Override
protected Control createControl(Composite box, String style) {
- Content mediaobject = getNode();
+ Content mediaobject = getContent();
Composite wrapper = new Composite(box, SWT.NONE);
wrapper.setLayout(CmsSwtUtils.noSpaceGridLayout());
updateB.setText("Update");
updateB.addSelectionListener(new Selected() {
+ private static final long serialVersionUID = -8234047511858456222L;
+
@Override
public void widgetSelected(SelectionEvent e) {
Content videodata = mediaobject.child(DbkType.videoobject).child(DbkType.videodata);
deleteB.setText("Delete");
deleteB.addSelectionListener(new Selected() {
+ private static final long serialVersionUID = -7552456185687361642L;
+
@Override
public void widgetSelected(SelectionEvent e) {
mediaobject.remove();