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

Examples of org.springframework.ide.eclipse.quickfix.jdt.proposals.RequestMappingVariableCompletionProposal


            if (pathVariable instanceof SingleMemberAnnotation) {
              Expression expression = ((SingleMemberAnnotation) pathVariable).getValue();
              if (expression instanceof StringLiteral) {
                String variableName = ((StringLiteral) expression).getLiteralValue();
                if (variableName.startsWith(filter)) {
                  proposals.add(new RequestMappingVariableCompletionProposal(param, variableName,
                      valueOffset + variableOffset, filter.length(), annotation, methodDecl,
                      javaContext));
                  // differentVariableName = true;
                }
              }
            }
            else if (pathVariable instanceof MarkerAnnotation) {
              String paramName = param.getName().getFullyQualifiedName();
              if (paramName.startsWith(filter)) {
                proposals.add(new RequestMappingVariableCompletionProposal(param, paramName,
                    valueOffset + variableOffset, filter.length(), annotation, methodDecl,
                    javaContext));
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.jdt.proposals.RequestMappingVariableCompletionProposal

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.