" panel.setWidget(0, 0, new Button('A'));",
" }",
"}");
frame.refresh();
assertNoErrors(frame);
final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
final WidgetInfo button = panel.getChildrenWidgets().get(0);
//
ExecutionUtils.run(frame, new RunnableEx() {
public void run() throws Exception {
// prepare alignment manager
final IMenuManager alignmentManager;
{
MenuManager contextMenu = getDesignerMenuManager();
panel.getBroadcastObject().addContextMenu(ImmutableList.of(button), button, contextMenu);
alignmentManager = findChildMenuManager(contextMenu, managerText);
assertNotNull(alignmentManager);
}
// set alignment
IAction alignmentAction = findChildAction(alignmentManager, actionText);