Package org.eclipse.wb.internal.core.model.creation

Examples of org.eclipse.wb.internal.core.model.creation.ConstructorCreationSupport


  /**
   * Replaces arguments of {@link ClassInstanceCreation} and updates
   * {@link ConstructorCreationSupport}.
   */
  private void replaceConstructorArguments(String args) throws Exception {
    ConstructorCreationSupport creationSupport = (ConstructorCreationSupport) getCreationSupport();
    ClassInstanceCreation creation = creationSupport.getCreation();
    getEditor().replaceCreationArguments(creation, ImmutableList.of(args));
    setCreationSupport(new ConstructorCreationSupport(creation));
  }
View Full Code Here


  private TabInfo createTab(TabInfo referenceTab) throws Exception {
    TabInfo newTab =
        (TabInfo) JavaInfoUtils.createJavaInfo(
            getEditor(),
            "com.smartgwt.client.widgets.tab.Tab",
            new ConstructorCreationSupport());
    JavaInfoUtils.add(newTab, createTabAssociationObject(), this, referenceTab);
    return newTab;
  }
View Full Code Here

  private FormItemInfo createCanvasItem(FormItemInfo referenceItem) throws Exception {
    FormItemInfo newItem =
        (FormItemInfo) JavaInfoUtils.createJavaInfo(
            getEditor(),
            "com.smartgwt.client.widgets.form.fields.CanvasItem",
            new ConstructorCreationSupport());
    command_CREATE(newItem, referenceItem);
    {
      // materialize
      Statement targetStatement =
          AstNodeUtils.getEnclosingStatement(newItem.getCreationSupport().getNode());
View Full Code Here

  //
  // Utils
  //
  ////////////////////////////////////////////////////////////////////////////
  private static void assertConstructorSignature(FlowDataInfo flowData, String expected) {
    ConstructorCreationSupport creationSupport =
        (ConstructorCreationSupport) flowData.getCreationSupport();
    assertEquals(expected, creationSupport.getDescription().getSignature());
  }
View Full Code Here

  /**
   * Adds filler {@link WidgetInfo} into given cell.
   */
  private void addFiller(int column, int row) throws Exception {
    // prepare creation support
    ConstructorCreationSupport creationSupport = new ConstructorCreationSupport("empty", false);
    // prepare filler
    WidgetInfo filler =
        (WidgetInfo) JavaInfoUtils.createJavaInfo(
            getEditor(),
            "com.extjs.gxt.ui.client.widget.Text",
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.creation.ConstructorCreationSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.