Examples of replaceInvocationBinding()


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

      }
      // set absolute value
      {
        Expression expression = DomGenerics.arguments(invocation).get(1);
        editor.replaceExpression(expression, value);
        editor.replaceInvocationBinding(invocation);
        for (JavaInfo columnData : widget.getChildren(ColumnLayoutDataInfo.class)) {
          columnData.delete();
        }
      }
    }
View Full Code Here

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

      columnData.getCreationSupport().add_setSourceExpression(expression);
      columnData.addRelatedNode(expression);
    }
    // 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);
View Full Code Here

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

        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);
        }
      }
    });
    // add invocations for each cell in column
    String alignmentSource = alignment.getAlignmentField();
View Full Code Here

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

          // replace argument
          ExecutionUtils.run(m_this, new RunnableEx() {
            public void run() throws Exception {
              editor.replaceExpression(arguments.get(1), valueSource);
              // may be was not String argument
              editor.replaceInvocationBinding(invocation);
            }
          });
        }
      }
    }
View Full Code Here

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

            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

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

            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.