Package org.eclipse.ltk.core.refactoring

Examples of org.eclipse.ltk.core.refactoring.RefactoringStatus.addWarning()


          if (Signature.getElementType(field.getTypeSignature()) == Signature.SIG_BOOLEAN) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldIsBoolean;
            status
                .addWarning(message);
            status.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
            it.remove();
          }
        }
        if (this.fieldsToRefactor.isEmpty())
          status
View Full Code Here


        .flattenForest(this.computer.getEnumerizationForest());
    for (final Iterator it = this.fieldsToRefactor.iterator(); it.hasNext();) {
      final IField field = (IField) it.next();
      if (!enumerizableElements.contains(field)) {
        String message = Messages.ConvertConstantsToEnumRefactoring_RefactoringNotPossible;
        ret.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
      }
    }
    return ret;
  }
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.