Examples of addWarning()


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

            it.remove();
          }

          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();
          }
        }
View Full Code Here

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

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

        .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

Examples of org.glassfish.admin.rest.model.ResponseBody.addWarning()

            rb.setIncludeResourceLinks(includeResourceLinks());
            return rb;
        }
        final ResponseBody responseBody = new ResponseBody(includeResourceLinks());
        if (ExitCode.WARNING.equals(exitCode)) {
            responseBody.addWarning(report.getMessage());
        } else {
            responseBody.addFailure(report.getMessage());
        }
        return responseBody;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.addWarning()

                Iterator it = messages.iterator();
                while (it.hasNext()) {
                    Message message = (Message) it.next();
                    switch (message.getMessageType()) {
                        case Message.ERROR: messagesHandler.addError(message.getMessage(locale)); break;
                        case Message.WARNING: messagesHandler.addWarning(message.getMessage(locale)); break;
                        case Message.INFO: messagesHandler.addMessage(message.getMessage(locale)); break;
                    }
                }
            } catch (Exception e) {
                log.error("Error importing KPIs from file (" + file + ")", e);
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.addWarning()

                MessageList messages = importResults.getMessages();
                Locale locale = LocaleManager.currentLocale();
                for (Message message : messages) {
                    switch (message.getMessageType()) {
                        case Message.ERROR: messagesHandler.addError(message.getMessage(locale)); break;
                        case Message.WARNING: messagesHandler.addWarning(message.getMessage(locale)); break;
                        case Message.INFO: messagesHandler.addMessage(message.getMessage(locale)); break;
                    }
                }
            } catch (Exception e) {
                log.error("Error importing KPIs from file (" + file + ")", e);
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addWarning()

           
            // check if nonamespace attribute is in the allowed set
            String name = uctx.getAttributeName(i);
            if (uctx.getAttributeNamespace(i).length() == 0) {
                if (attrs.indexOf(name) < 0) {
                    vctx.addWarning("Undefined attribute " + name, this);
                }
            }
        }
    }
   
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addWarning()

            } else if (!other) {
               
                // warn on non-WSDL attribute present where forbidden
                ValidationContext vctx = (ValidationContext)ictx.getUserContext();
                String qname = UnmarshallingContext.buildNameString(ns, name);
                vctx.addWarning("Non-WSDL attribute not allowed " + qname, ictx.getStackTop());
               
            }
        }
    }
   
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addWarning()

     */
    private void setNameConverter(NameConverter nconv, IUnmarshallingContext ictx) {
        if (nconv != null) {
            if (m_nameConverter != null) {
                ValidationContext vctx = (ValidationContext)ictx.getUserContext();
                vctx.addWarning("Repeated 'name-converter' element overrides previous setting", new ProblemLocation(ictx));
            }
            m_nameConverter = nconv;
        }
    }

View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addWarning()

               
                // check if nonamespace attribute is in the allowed set
                String name = ctx.getAttributeName(i);
                if (ctx.getAttributeNamespace(i).length() == 0) {
                    if (s_allowedAttributes.indexOf(name) < 0) {
                        vctx.addWarning("Undefined attribute " + name, ctx.getStackTop());
                    }
                }
            }
           
            // skip content, and create and return object instance
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.