Package org.springframework.ide.eclipse.quickfix.processors

Examples of org.springframework.ide.eclipse.quickfix.processors.MethodAttributeQuickAssistProcessor


      else if (ERROR_ID_UNDEFINED_DESTROY.equals(errorId)) {
        String methodName = marker.getAttribute("METHOD", null);
        if (methodName != null && className != null) {
          NodeInfo nodeInfo = findNodeInfo(marker, BeansSchemaConstants.ATTR_DESTROY_METHOD, methodName);
          if (nodeInfo != null && file != null) {
            proposals = new MethodAttributeQuickAssistProcessor(nodeInfo.offset, nodeInfo.length,
                className, methodName, true, nodeInfo.node, BeansSchemaConstants.ATTR_DESTROY_METHOD,
                file.getProject(), false, new InitDestroyMethodContentAssistCalculator(), file)
                .computeQuickAssistProposals(null);
          }
        }
      }
      else if (ERROR_ID_UNDEFINED_INIT.equals(errorId)) {
        String methodName = marker.getAttribute("METHOD", null);
        if (methodName != null && className != null) {
          NodeInfo nodeInfo = findNodeInfo(marker, BeansSchemaConstants.ATTR_INIT_METHOD, methodName);
          if (nodeInfo != null && file != null) {
            proposals = new MethodAttributeQuickAssistProcessor(nodeInfo.offset, nodeInfo.length,
                className, methodName, true, nodeInfo.node, BeansSchemaConstants.ATTR_INIT_METHOD,
                file.getProject(), false, new InitDestroyMethodContentAssistCalculator(), file)
                .computeQuickAssistProposals(null);
          }
        }
      }
      else if (ERROR_ID_UNDEFINED_FACTORY_BEAN_METHOD.equals(errorId)) {
        String methodName = marker.getAttribute("METHOD", null);
        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);
          }
        }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.processors.MethodAttributeQuickAssistProcessor

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.