Examples of addWarning()


Examples of org.codehaus.enunciate.contract.validation.ValidationResult.addWarning()

  @Override
  public ValidationResult validateComplexType(ComplexTypeDefinition complexType) {
    ValidationResult result = super.validateComplexType(complexType);
    for (Attribute attribute : complexType.getAttributes()) {
      if (attribute.isXmlList()) {
        result.addWarning(attribute, "The Objective-C client code won't serialize xml lists as an array, instead passing the list as a string that will need to be parsed. This may cause confusion to Objective-C consumers.");
      }

      if (attribute.isCollectionType() && attribute.isBinaryData()) {
        result.addError(attribute, "The Objective-C client code doesn't support a collection of items that are binary data. You'll have to define separate accessors for each item or disable the Objective-C module.");
      }
View Full Code Here

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

                   
                    IPackageFragment dest = (IPackageFragment) getArguments().getDestination();
                    ISigilProjectModel destProject = SigilCore.create(dest.getJavaProject().getProject());

                    if (!destProject.equals(sourceProject)) {
                        status.addWarning("Moving an exported class to another bundle effects client bundles that use Require-Bundle");
                    }
                   
                    IPackageExport newExport = ModelHelper.findExport(destProject,
                        dest.getElementName());
                   
View Full Code Here

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

                        changes.add(new ExportPackageChange(destProject, null, newExport));
                        changes.add(new ExportPackageChange(sourceProject, oldExport,
                            null));

                        status.addWarning("Package " + packageName + " is exported from "
                            + sourceProject.getSymbolicName()
                            + ", this may effect client bundles that use require bundle");
                    }
                    else
                    {
View Full Code Here

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

                        Set<String> dependencies = JavaHelper.findLocalPackageDependencies(
                            sourceProject, packageName, sub.newChild(100));

                        if (users.size() > 0 && dependencies.size() > 0)
                        {
                            status.addWarning("Package " + packageName
                                + " is coupled to " + users + " and " + dependencies
                                + " this may cause a cyclical dependency");
                        }

                        if (users.size() > 0)
View Full Code Here

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

        for (final Iterator it = this.fieldsToRefactor.listIterator(); it
            .hasNext();) {
          final IField field = (IField) it.next();
          if (!field.exists()) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FileDoesNotExist;
            status.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
            it.remove();
          }

          else if (!field.isBinary()
              && !field.getCompilationUnit().isStructureKnown()) {
View Full Code Here

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

          }

          else if (!field.isBinary()
              && !field.getCompilationUnit().isStructureKnown()) {
            String message = Messages.ConvertConstantsToEnumRefactoring_CUContainsCompileErrors;
            status.addWarning(MessageFormat.format(message, new Object[] {field.getCompilationUnit().getElementName()}));
            it.remove();
          }

          else if (field.getElementName().equals("serialVersionUID")) { //$NON-NLS-1$
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldNotEligibleForEnum;
View Full Code Here

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

            it.remove();
          }

          else if (field.getElementName().equals("serialVersionUID")) { //$NON-NLS-1$
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldNotEligibleForEnum;
            status.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
            it.remove();
          }

          else if (Signature.getTypeSignatureKind(field
              .getTypeSignature()) != Signature.BASE_TYPE_SIGNATURE) {
View Full Code Here

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

          }

          else if (Signature.getTypeSignatureKind(field
              .getTypeSignature()) != Signature.BASE_TYPE_SIGNATURE) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldMustBePrimitive;
            status.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
            it.remove();
          }

          else if (!Util.isConstantField(field)) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldIsNotAConstant;
View Full Code Here

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

            it.remove();
          }

          else if (!Util.isConstantField(field)) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldIsNotAConstant;
            status.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
            it.remove();
          }

          else if (Flags.isVolatile(field.getFlags())
              || Flags.isTransient(field.getFlags())) {
View Full Code Here

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

          }

          else if (Flags.isVolatile(field.getFlags())
              || Flags.isTransient(field.getFlags())) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldCannotBeExpressedAsEnum;
            status.addWarning(MessageFormat.format(message, new Object[] {field.getElementName()}));
            it.remove();
          }

          if (Signature.getElementType(field.getTypeSignature()) == Signature.SIG_BOOLEAN) {
            String message = Messages.ConvertConstantsToEnumRefactoring_FieldIsBoolean;
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.