/**
* Test for copy/paste {@link DockPanelInfo} with its children.
*/
public void test_clipboard_it() throws Exception {
final RootPanelInfo frame =
parseJavaInfo(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" {",
" DockPanel panel = new DockPanel();",
" rootPanel.add(panel);",
" {",
" Button button_1 = new Button();",
" panel.add(button_1, DockPanel.WEST);",
" }",
" {",
" Button button_2 = new Button();",
" panel.add(button_2, DockPanel.NORTH);",
" }",
" }",
" }",
"}");
frame.refresh();
//
{
DockPanelInfo panel = getJavaInfoByName("panel");
doCopyPaste(panel, new PasteProcedure<WidgetInfo>() {
public void run(WidgetInfo copy) throws Exception {
frame.command_CREATE2(copy, null);
}
});
}
assertEditor(
"public class Test implements EntryPoint {",