protected void doPasteComponent(Point pasteLocation, PastedComponentInfo pastedWidget)
throws Exception {
W widget = toWidget(pastedWidget.getComponent());
m_panel.command_CREATE2(widget, null);
{
Point widgetLocation_inPasteBounds = pastedWidget.getBounds().getLocation();
Point widgetLocation = pasteLocation.getTranslated(widgetLocation_inPasteBounds);
m_panel.command_LOCATION(widget, widgetLocation);
}
{
Dimension size = pastedWidget.getBounds().getSize();
m_panel.command_SIZE(widget, size, ResizeDirection.TRAILING, ResizeDirection.TRAILING);