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

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


          JavaInfo newHTML =
              JavaInfoUtils.createJavaInfo(
                  getEditor(),
                  "com.google.gwt.user.client.ui.HTML",
                  new ConstructorCreationSupport());
          LocalUniqueVariableSupport variableSupport = new LocalUniqueVariableSupport(newHTML);
          JavaInfoUtils.add(
              newHTML,
              variableSupport,
              PureFlatStatementGenerator.INSTANCE,
              AssociationObjects.invocationChild("%parent%.setEl(%child%.getElement())", true),
              m_this,
              null);
          variableSupport.inline();
          newHTML.getPropertyByTitle("html").setValue("New BoxComponent");
        }
      }
    });
  }
View Full Code Here


                "com.google.gwt.user.client.ui.MenuBar",
                new ConstructorCreationSupport("vertical", false));
        // add "subMenu" directly before this MenuItem
        JavaInfoUtils.add(
            subMenu,
            new LocalUniqueVariableSupport(subMenu),
            PureFlatStatementGenerator.INSTANCE,
            AssociationObjects.constructorChild(),
            m_this,
            null,
            new StatementTarget(creationStatement, true));
View Full Code Here

      // exchange elements
      getEditor().moveArrayElement(arrayInitializer, arrayInitializer, oldIndex, newIndex);
    } else {
      // try optimize source
      if (column.getVariableSupport() instanceof LocalUniqueVariableSupport) {
        LocalUniqueVariableSupport localVariableSupport =
            (LocalUniqueVariableSupport) column.getVariableSupport();
        if (localVariableSupport.canInline()) {
          localVariableSupport.inline();
        }
      }
      // source
      String source = null;
      if (column.getVariableSupport() instanceof EmptyVariableSupport) {
View Full Code Here

    // no invocations/fields -> inline
    addBroadcastListener(new ObjectEventListener() {
      @Override
      public void endEdit_aboutToRefresh() throws Exception {
        if (getVariableSupport() instanceof LocalUniqueVariableSupport) {
          LocalUniqueVariableSupport variableSupport =
              (LocalUniqueVariableSupport) getVariableSupport();
          if (variableSupport.canInline()) {
            variableSupport.inline();
          }
        }
      }
    });
    // is default -> delete
View Full Code Here

TOP

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

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.