Package org.eclipse.sapphire.modeling

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


        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

    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

       
    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

        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

        {
            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

                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

                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

                throw new IllegalStateException();
            }
           
            final Status validation = this.def.validation();
           
            if( validation.severity() == Status.Severity.ERROR )
            {
                throw new InvalidDefinitionException( validation );
            }
           
           return this.def;
View Full Code Here

            final FunctionResult result = ExpressionLanguageParser.parse( expr ).evaluate( context );
           
            try
            {
                final Status status = result.status();
                assertEquals( Status.Severity.ERROR, status.severity() );
                assertEquals( expected, status.message() );
            }
            finally
            {
                result.dispose();
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.