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

Examples of org.springframework.ide.eclipse.quickfix.jdt.processors.QualifierAnnotationQuickAssistProcessor


          if (node instanceof MethodDeclaration) {
            MethodDeclaration decl = (MethodDeclaration) node;
            // SimpleName name = decl.getName();
            if (problemType.equals(AutowireDependencyProvider.TOO_MANY_MATCHING_BEANS)) {
              proposals.addAll(new QualifierAnnotationQuickAssistProcessor().getAssists(decl,
                  assistContext));
            }
            else if (problemType.equals(AutowireDependencyProvider.REQUIRED_NO_MATCH)) {
              proposals.addAll(new AutowireRequiredNotFoundAnnotationQuickAssistProcessor().getAssists(
                  decl, assistContext));
            }
          }
          else if (node instanceof FieldDeclaration) {
            FieldDeclaration decl = (FieldDeclaration) node;
            List<VariableDeclarationFragment> fragments = decl.fragments();
            // SimpleName name = fragments.get(0).getName();
            if (fragments.size() > 0) {
              if (problemType.equals(AutowireDependencyProvider.TOO_MANY_MATCHING_BEANS)) {
                proposals.addAll(new QualifierAnnotationQuickAssistProcessor().getAssists(decl,
                    assistContext));
              }
              else if (problemType.equals(AutowireDependencyProvider.REQUIRED_NO_MATCH)) {
                proposals.addAll(new AutowireRequiredNotFoundAnnotationQuickAssistProcessor()
                    .getAssists(decl, assistContext));
View Full Code Here


  @Override
  protected void setUp() throws Exception {
    setUp("com.test.QualifierTest");

    processor = new QualifierAnnotationQuickAssistProcessor();
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.jdt.processors.QualifierAnnotationQuickAssistProcessor

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.