Package org.springframework.ide.eclipse.quickfix.proposals

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


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

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

    label = "Change constructor " + getConstructorDisplay(constructor);
    proposals.add(new AddConstructorParamQuickFixProposal(offset, length, missingEndQuote, numAdditionalParams,
        constructor, label, javaProject));
View Full Code Here


    ITextRegion valueRegion = classAttr.getValueRegion();

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

    RemoveConstructorArgQuickFixProposal proposal = new RemoveConstructorArgQuickFixProposal(offset, length, false,
        removal, beanNode, "");
    proposal.apply(document);

    return beanNode;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.proposals.RemoveConstructorArgQuickFixProposal

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.