Examples of AddConstructorArgQuickFixProposal


Examples of org.springframework.ide.eclipse.quickfix.proposals.AddConstructorArgQuickFixProposal

   */
  private List<ICompletionProposal> createProposalForMoreParameters(IMethod constructor, int numAdditionalArgs) {
    List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();

    String label = "Add <constructor-arg> to match " + getConstructorDisplay(constructor);
    proposals.add(new AddConstructorArgQuickFixProposal(offset, length, missingEndQuote, numAdditionalArgs,
        beanNode, label));

    IMethodBinding methodBinding = QuickfixUtils.getMethodBinding(javaProject, constructor);
    if (methodBinding != null) {
      label = "Change constructor " + getConstructorDisplay(constructor);
View Full Code Here

Examples of org.springframework.ide.eclipse.quickfix.proposals.AddConstructorArgQuickFixProposal

    ITextRegion valueRegion = classAttr.getValueRegion();

    int offset = getOffset(valueRegion, beanNode);
    int length = getLength(valueRegion, false);

    AddConstructorArgQuickFixProposal proposal = new AddConstructorArgQuickFixProposal(offset, length, false,
        addition, beanNode, "");
    proposal.apply(document);

    return beanNode;
  }
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.