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

Examples of org.eclipse.wb.internal.core.model.variable.EmptyVariableSupport


      m_javaInfo.addRelatedNode(expression);
    }
    // set Association
    m_javaInfo.setAssociation(new InvocationSecondaryAssociation(invocation));
    // set VariableSupport
    VariableSupport variableSupport = new EmptyVariableSupport(m_javaInfo, expression);
    m_javaInfo.setVariableSupport(variableSupport);
    return variableSupport;
  }
View Full Code Here


    }
    // set Association
    columnData.setAssociation(new InvocationSecondaryAssociation(invocation));
    editor.replaceInvocationBinding(invocation);
    // set VariableSupport
    VariableSupport variableSupport = new EmptyVariableSupport(columnData, expression);
    columnData.setVariableSupport(variableSupport);
    // add content ColumnLayoutData as child
    widget.addChild(columnData);
    return columnData;
  }
View Full Code Here

          content.addRelatedNode(expression);
        }
        // set Association
        content.setAssociation(new ConstructorChildAssociation());
        // set VariableSupport
        VariableSupport variableSupport = new EmptyVariableSupport(content, expression);
        content.setVariableSupport(variableSupport);
        // add content Panel as child
        addChild(content);
      }
    });
View Full Code Here

          NodeTarget nodeTarget = new NodeTarget(statementTarget);
          sliderSource = slider.getCreationSupport().add_getSource(nodeTarget);
        }
        // replace "null" with "new Slider()"
        sliderExpression = getEditor().replaceExpression(sliderExpression, sliderSource);
        slider.setVariableSupport(new EmptyVariableSupport(slider, sliderExpression));
        slider.getCreationSupport().add_setSourceExpression(sliderExpression);
        // add Slider as child
        slider.setAssociation(new ConstructorChildAssociation());
        addChild(slider);
      }
View Full Code Here

        JavaInfoUtils.createJavaInfo(
            getEditor(),
            "com.google.gwt.user.cellview.client.CellList",
            creationSupport);
    // configure info
    cellList.setVariableSupport(new EmptyVariableSupport(cellList, cellListExpression));
    creationSupport.add_setSourceExpression(cellListExpression);
    // add info as child
    cellList.setAssociation(new ConstructorChildAssociation());
    addChild(cellList);
  }
View Full Code Here

            getEditor(),
            "com.google.gwt.user.client.ui.HTML",
            new ConstructorCreationSupport(headerExpression));
    header.bindToExpression(headerExpression);
    header.addRelatedNode(headerExpression);
    header.setVariableSupport(new EmptyVariableSupport(header, headerExpression));
    header.setAssociation(new InvocationSecondaryAssociation(invocation));
    component.addChild(header);
  }
View Full Code Here

          editor.replaceInvocationArgument(
              invocation,
              0,
              widget.getCreationSupport().add_getSource(target));
      widget.getCreationSupport().add_setSourceExpression(widgetExpression);
      widget.setVariableSupport(new EmptyVariableSupport(widget, widgetExpression));
      widget.setAssociation(new ImplicitFactoryArgumentAssociation(invocation, item));
      item.addChild(widget);
    }
  }
View Full Code Here

      String source) throws Exception {
    Expression arrayElement = getEditor().addArrayElement(arrayInitializer, index, source);
    column.addRelatedNode(arrayElement);
    // set variable support
    if (column.getVariableSupport() == null) {
      column.setVariableSupport(new EmptyVariableSupport(column, arrayElement));
    }
    // set source creation
    if (arrayElement instanceof ClassInstanceCreation) {
      column.getCreationSupport().add_setSourceExpression(arrayElement);
    }
View Full Code Here

      NodeTarget nodeTarget = new NodeTarget(statementTarget);
      menuSource = menu.getCreationSupport().add_getSource(nodeTarget);
    }
    // replace "null" with "new Menu()"
    menuExpression = getEditor().replaceExpression(menuExpression, menuSource);
    menu.setVariableSupport(new EmptyVariableSupport(menu, menuExpression));
    menu.getCreationSupport().add_setSourceExpression(menuExpression);
    // add Menu as child
    menu.setAssociation(new ConstructorChildAssociation());
    addChild(menu);
  }
View Full Code Here

    // add source
    String widgetSource = widget.getCreationSupport().add_getSource(null);
    expression = container.getEditor().replaceExpression(expression, widgetSource);
    widget.addRelatedNode(expression);
    // set supports
    widget.setVariableSupport(new EmptyVariableSupport(widget, expression));
    widget.getCreationSupport().add_setSourceExpression(expression);
    widget.setAssociation(new ConstructorChildAssociation());
    // set hierarchy
    widgetCanvas.addChild(widget);
    // ready
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.variable.EmptyVariableSupport

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.