ui/src/main/java/org/pentaho/di/ui/spoon/Clipboard.java
public void attachToClipboard( Widget widget ) {
    String widgetId = WidgetUtil.getId( widget );
    JavaScriptExecutor executor = RWT.getClient().getService( JavaScriptExecutor.class );
    executor.execute(
      "var x = document.getElementById( 'input-clipboard' );\n"
      + "x.value='" + widgetId + "';\n"
      + "x.focus();"
    );
  }
/**
   * Attach a widget to the clipboard. This should be called before any clipboard event.
   * @param widget
   */
Attach a widget to the clipboard. This should be called before any clipboard event.
@param widget
Attach a widget to the clipboard . This should be called before any clipboard event . @param widget
public void attachToClipboard( Widget widget ) {
    String widgetId = WidgetUtil.getId( widget );
    JavaScriptExecutor executor = RWT.getClient().getService( JavaScriptExecutor.class );
    executor.execute(
      "var x = document.getElementById( 'input-clipboard' );\n"
      + "x.value='" + widgetId + "';\n"
      + "x.focus();"
    );
  }
public void attachToClipboard ( Widget widget ) { String widgetId = WidgetUtil . getId ( widget ) ; JavaScriptExecutor executor = RWT . getClient ( ) . getService ( JavaScriptExecutor . class ) ; executor . execute ( "var x = document.getElementById( 'input-clipboard' );\n" + "x.value='" + widgetId + "';\n" + "x.focus();" ) ; }
Attach a widget to the clipboard.
Attach a widget to the clipboard .