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

Examples of org.springframework.ide.eclipse.quickfix.proposals.CreateNewClassQuickFixProposal


      for (String suggestedClassName : suggestedClassNames) {
        proposals.add(new RenameToSimilarNameQuickFixProposal(suggestedClassName, offset, length,
            missingEndQuote));
      }

      proposals.add(new CreateNewClassQuickFixProposal(offset, length, text, missingEndQuote, javaProject,
          propertyNames, numConstructorArgs));

      return proposals.toArray(new ICompletionProposal[proposals.size()]);
    }
    catch (CoreException e1) {
View Full Code Here


      else if ("BEAN".equals(problemAttribute.getKey())) {
        beanName = (String) problemAttribute.getValue();
      }
    }
    if ("CLASS_NOT_FOUND".equals(problemId) && className != null) {
      proposals.add(new CreateNewClassQuickFixProposal(offset, length, className, missingEndQuote, javaProject,
          new HashSet<String>(), 0));
    }
    else if ("FIELD_NOT_FOUND".equals(problemId) && className != null && fieldName != null) {
      IType type = JdtUtils.getJavaType(javaProject.getProject(), className);
      if (!type.isReadOnly()) {
View Full Code Here

    ITextRegion valueRegion = classAttr.getValueRegion();

    int offset = getOffset(valueRegion, beanNode);
    int length = getLength(valueRegion, false);

    CreateNewClassQuickFixProposal proposal = new CreateNewClassQuickFixProposal(offset, length, className, false,
        javaProject, properties, constructorArgCount, false);
    proposal.apply(document);
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.proposals.CreateNewClassQuickFixProposal

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.