Package org.eclipse.wb.internal.core.utils.ast

Examples of org.eclipse.wb.internal.core.utils.ast.AstEditor.replaceInvocationName()


      int bottom = getBounds().height - bounds.bottom();
      if (anchor == Anchor.NONE) {
        editor.removeEnclosingStatement(invocation);
      }
      if (anchor == Anchor.TRAILING) {
        editor.replaceInvocationName(invocation, "setWidgetBottomHeight");
        setInvocationArgument(invocation, 1, bottom, true);
      }
      if (anchor == Anchor.BOTH) {
        editor.replaceInvocationName(invocation, "setWidgetTopBottom");
        setInvocationArgument(invocation, 3, bottom, true);
View Full Code Here


      if (anchor == Anchor.TRAILING) {
        editor.replaceInvocationName(invocation, "setWidgetBottomHeight");
        setInvocationArgument(invocation, 1, bottom, true);
      }
      if (anchor == Anchor.BOTH) {
        editor.replaceInvocationName(invocation, "setWidgetTopBottom");
        setInvocationArgument(invocation, 3, bottom, true);
      }
      return;
    }
    if ((invocation = getWidgetInvocation(widget, "setWidgetBottomHeight")) != null) {
View Full Code Here

    if ((invocation = getWidgetInvocation(widget, "setWidgetBottomHeight")) != null) {
      if (anchor == Anchor.NONE) {
        editor.removeEnclosingStatement(invocation);
      }
      if (anchor == Anchor.LEADING) {
        editor.replaceInvocationName(invocation, "setWidgetTopHeight");
        setInvocationArgument(invocation, 1, bounds.top(), true);
      }
      if (anchor == Anchor.BOTH) {
        editor.replaceInvocationName(invocation, "setWidgetTopBottom");
        {
View Full Code Here

          if (column == m_column) {
            AstEditor editor = m_panel.getEditor();
            if (methodDescription.getSignature().equals(SET_HOR_ALIGNMENT)) {
              editor.removeEnclosingStatement(invocation);
            } else if (methodDescription.getSignature().equals(SET_ALIGNMENT)) {
              editor.replaceInvocationName(invocation, "setVerticalAlignment");
              editor.removeInvocationArgument(invocation, 2);
              editor.replaceInvocationBinding(invocation);
            }
          }
        }
View Full Code Here

            AstEditor editor = m_panel.getEditor();
            if (methodDescription.getSignature().equals(SET_VER_ALIGNMENT)) {
              editor.removeEnclosingStatement(invocation);
            } else if (methodDescription.getSignature().equals(SET_ALIGNMENT)) {
              editor.removeInvocationArgument(invocation, 3);
              editor.replaceInvocationName(invocation, "setHorizontalAlignment");
              editor.replaceInvocationBinding(invocation);
            }
          }
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.