Examples of NewVariableCorrectionProposal


Examples of org.eclipse.jdt.internal.ui.text.correction.proposals.NewVariableCorrectionProposal

  public static NewVariableCorrectionProposal createNewVariableCorrectionProposal(String className, String fieldName,
      IJavaProject javaProject, String displayString, boolean isStatic) {
    IType type = JdtUtils.getJavaType(javaProject.getProject(), className);
    ITypeBinding typeBinding = getTargetTypeBinding(javaProject, type);
    SimpleName fieldNameNode = getMockFieldAccess(className, fieldName, isStatic);
    return new NewVariableCorrectionProposal(displayString, type.getCompilationUnit(),
        NewVariableCorrectionProposal.FIELD, fieldNameNode, typeBinding, 100,
        JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC));

  }
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.