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

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


          proposal.getDisplayText()));
    }

    IDOMNode beanNode = QuickfixUtils.getEnclosingBeanNode(node);
    if (beanNode != null) {
      proposals.add(new CreateNewBeanQuickFixProposal(offset, length, missingEndQuote, text, beanNode));
    }
    else {
      // this case is only for name space elements where there is no
      // enclosing bean node
      proposals.add(new CreateNewBeanQuickFixProposal(offset, length, missingEndQuote, text, node));
    }

    IBeansModel model = BeansCorePlugin.getModel();
    BeansProject project = (BeansProject) model.getProject(file.getProject());
    if (project != null) {
View Full Code Here


    ITextRegion valueRegion = attr.getValueRegion();

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

    CreateNewBeanQuickFixProposal proposal = new CreateNewBeanQuickFixProposal(offset, length, false, beanName,
        beanNode);
    proposal.apply(document);
  }
View Full Code Here

TOP

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

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.