//
// Clipboard
//
////////////////////////////////////////////////////////////////////////////
public void test_clipboard() throws Exception {
final RootLayoutPanelInfo frame =
parseJavaInfo(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootLayoutPanel rootPanel = RootLayoutPanel.get();",
" {",
" DockLayoutPanel panel = new DockLayoutPanel(Unit.CM);",
" rootPanel.add(panel);",
" {",
" Button button = new Button();",
" panel.addWest(button, 1.0);",
" }",
" {",
" Button button = new Button();",
" panel.addNorth(button, 2.0);",
" }",
" }",
" }",
"}");
frame.refresh();
//
{
DockLayoutPanelInfo 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 {",