array.push(toJSArray(VIEW, view));
}
}
private void buildInsert(final JsArray array) {
final JsArray insert = JavaScriptObject.createArray().cast();
addToValueArray(showInsertPictureButton, insert, PICTURE);
addToValueArray(showInsertLinkButton, insert, LINK);
addToValueArray(showInsertVideoButton, insert, VIDEO);
if (!insert.toString().isEmpty()) {
array.push(toJSArray(INSERT, insert));
}
}