Examples of FactoryMethodContentAssistCalculator


Examples of org.springframework.ide.eclipse.beans.ui.editor.contentassist.bean.FactoryMethodContentAssistCalculator

        if (methodName != null && className != null) {
          NodeInfo nodeInfo = findNodeInfo(marker, BeansSchemaConstants.ATTR_FACTORY_METHOD, methodName);
          if (nodeInfo != null && file != null) {
            proposals = new MethodAttributeQuickAssistProcessor(nodeInfo.offset, nodeInfo.length,
                className, methodName, true, nodeInfo.node, BeansSchemaConstants.ATTR_FACTORY_METHOD,
                file.getProject(), false, new FactoryMethodContentAssistCalculator(), file)
                .computeQuickAssistProposals(null);
          }
        }
      }
      else if (ERROR_ID_NO_SETTER.equals(errorId)) {
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.editor.contentassist.bean.FactoryMethodContentAssistCalculator

    this.referenceNode = referenceNode;
  }

  @Override
  protected IContentAssistCalculator createContentAssistCalculator() {
    return new FactoryMethodContentAssistCalculator() {
      @Override
      protected Node getFactoryBeanReferenceNode(NamedNodeMap attributes) {
        return attributes.getNamedItem(referenceNode);
      }
    };
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.editor.contentassist.bean.FactoryMethodContentAssistCalculator

    registerContentAssistCalculator("http://www.osgi.org/xmlns/blueprint/v1.0.0", "bean", "property", "name",
        new PropertyNameContentAssistCalculator());
    registerContentAssistCalculator("http://www.osgi.org/xmlns/blueprint/v1.0.0", "bean", "property", "value",
        new PropertyValueContentAssistCalculator());

    registerContentAssistCalculator("bean", "factory-method", new FactoryMethodContentAssistCalculator() {
      @Override
      protected Node getFactoryBeanReferenceNode(NamedNodeMap attributes) {
        return attributes.getNamedItem("factory-ref");
      }
    });
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.