Examples of severity()


Examples of br.gov.frameworkdemoiselle.exception.ApplicationException.severity()

  }

  private void handleException(Throwable cause) throws Exception {
    ApplicationException ann = cause.getClass().getAnnotation(ApplicationException.class);

    if (ann == null || SeverityType.FATAL == ann.severity()) {
      throw (cause instanceof Exception ? (Exception) cause : new Exception(cause));

    } else {
      switch (ann.severity()) {
        case INFO:
View Full Code Here

Examples of br.gov.frameworkdemoiselle.exception.ApplicationException.severity()

    if (ann == null || SeverityType.FATAL == ann.severity()) {
      throw (cause instanceof Exception ? (Exception) cause : new Exception(cause));

    } else {
      switch (ann.severity()) {
        case INFO:
          getLogger().info(cause.getMessage());
          break;

        case WARN:
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

   
    Status status = part().content();
    ValidationMarkerSize size = getSize();
    if (part().visible())
    {
      if (status.severity() == Status.Severity.WARNING)
      {
        if (size == ValidationMarkerSize.SMALL)
        {
          image = imageCache.image(IMG_WARNING_SMALL);
        }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

        else
        {
          image = imageCache.image(IMG_WARNING);         
        }
      }
      else if (status.severity() == Status.Severity.ERROR)
      {
        if (size == ValidationMarkerSize.SMALL)
        {
          image = imageCache.image(IMG_ERROR_SMALL);
        }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

    ValidationMarkerSize size = markerPart.getSize();
    Image image = null;
       
    Element model = nodePart.getModelElement();   
    Status status = model.validation();
    if (status.severity() != Status.Severity.OK)
    {
      if (status.severity() == Status.Severity.WARNING)
      {
        if (size == ValidationMarkerSize.SMALL)
        {
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

       
    Element model = nodePart.getModelElement();   
    Status status = model.validation();
    if (status.severity() != Status.Severity.OK)
    {
      if (status.severity() == Status.Severity.WARNING)
      {
        if (size == ValidationMarkerSize.SMALL)
        {
          image = nodePart.getSwtResourceCache().image(IMG_WARNING_SMALL);
        }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

        else
        {
          image = nodePart.getSwtResourceCache().image(IMG_WARNING);         
        }
      }
      else if (status.severity() == Status.Severity.ERROR)
      {
        if (size == ValidationMarkerSize.SMALL)
        {
          image = nodePart.getSwtResourceCache().image(IMG_ERROR_SMALL);
        }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

        {
            public void run()
            {
                final Status st = form.part().validation();
               
                if( st.severity() == Status.Severity.ERROR )
                {
                    setMessage( st.message(), ERROR );
                    setValid( false );
                }
                else if( st.severity() == Status.Severity.WARNING )
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

                if( st.severity() == Status.Severity.ERROR )
                {
                    setMessage( st.message(), ERROR );
                    setValid( false );
                }
                else if( st.severity() == Status.Severity.WARNING )
                {
                    setMessage( st.message(), WARNING );
                    setValid( true );
                }
                else
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status.severity()

                else
                {
                    this.current = this.base;
                   
                    final Status st = validation();
                    final Status.Severity severity = st.severity();

                    if( severity == Status.Severity.ERROR )
                    {
                        if( this.error == null )
                        {
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.