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

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


      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

      }
      // initialize layout model
      {
        // set variable support
        {
          VariableSupport variableSupport = new ImplicitLayoutVariableSupport(implicitLayout);
          implicitLayout.setVariableSupport(variableSupport);
        }
        // set association
        implicitLayout.setAssociation(new ImplicitObjectAssociation(this));
        // add as child
View Full Code Here

      {
        LayoutInfo oldLayout = getLayout();
        oldLayout.delete();
      }
      // set new layout
      VariableSupport variableSupport =
          new EmptyInvocationVariableSupport(newLayout, "%parent%.setLayout(%child%)", 0);
      JavaInfoUtils.add(
          newLayout,
          variableSupport,
          PureFlatStatementGenerator.INSTANCE,
View Full Code Here

        Class<?> layoutClass = layout.getClass();
        implicitLayout =
            (LayoutInfo) JavaInfoUtils.createJavaInfo(editor, layoutClass, creationSupport);
      }
      // set variable support
      VariableSupport variableSupport = new ImplicitLayoutVariableSupport(implicitLayout);
      implicitLayout.setVariableSupport(variableSupport);
      // set association
      implicitLayout.setAssociation(new ImplicitObjectAssociation(this));
      // add as child
      addChildFirst(implicitLayout);
View Full Code Here

        statementGenerator = BlockStatementGenerator.INSTANCE;
      } else {
        statementGenerator = PureFlatStatementGenerator.INSTANCE;
      }
      // set new layout
      VariableSupport variableSupport =
          new EmptyInvocationVariableSupport(newLayout, "%parent%.setLayout(%child%)", 0);
      JavaInfoUtils.add(
          newLayout,
          variableSupport,
          statementGenerator,
View Full Code Here

    UIObjectInfo newItem = (UIObjectInfo) newObject;
    UIObjectInfo nextItem = (UIObjectInfo) nextObject;
    // add new item
    if (newItem instanceof MenuItemInfo) {
      if (newItem.getCreationSupport() instanceof ImplicitFactoryCreationSupport) {
        VariableSupport variableSupport = new EmptyPureVariableSupport(newItem);
        StatementGenerator statementGenerator = GenerationUtils.getStatementGenerator(newItem);
        JavaInfoUtils.add(newItem, variableSupport, statementGenerator, null, m_menu, nextItem);
      } else {
        JavaInfoUtils.add(newItem, getNewItemAssociation(), m_menu, nextItem);
      }
View Full Code Here

      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

            return key0 == key1;
          }

          public WidgetObserveInfo findObject(Map<JavaInfo, WidgetObserveInfo> javaInfoToWidget,
              JavaInfo javaInfo) throws Exception {
            VariableSupport variableSupport = javaInfo.getVariableSupport();
            for (Map.Entry<JavaInfo, WidgetObserveInfo> entry : javaInfoToWidget.entrySet()) {
              if (entry.getKey().getVariableSupport() == variableSupport) {
                WidgetObserveInfo widget = entry.getValue();
                widget.setJavaInfo(javaInfo);
                return widget;
View Full Code Here

TOP

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

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.