Package org.apache.flex.compiler.problems

Examples of org.apache.flex.compiler.problems.FXGUnknownAttributeValueProblem


        else if (FXG_LEADINGMODEL_IDEOGRAPHICCENTERDOWN_VALUE.equals(value))
            return LeadingModel.IDEOGRAPHICCENTERDOWN;
        else if (FXG_LEADINGMODEL_APPROXIMATETEXTFIELD_VALUE.equals(value))
            return LeadingModel.APPROXIMATETEXTFIELD;
       
        problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                node.getStartColumn(), FXG_LEADINGMODEL_ATTRIBUTE, value));
       
        return defaultValue;
    }  
View Full Code Here


        if (FXG_BLOCKPROGRESSION_TB_VALUE.equals(value))
            return BlockProgression.TB;
        else if (FXG_BLOCKPROGRESSION_RL_VALUE.equals(value))
            return BlockProgression.RL;
       
        problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                node.getStartColumn(), FXG_BLOCKPROGRESSION_ATTRIBUTE, value));
       
        return defaultValue;
    }    
View Full Code Here

        else if (FXG_INHERIT_VALUE.equals(value))
        {
            return LineBreak.INHERIT;
        }
       
        problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                node.getStartColumn(), FXG_LINEBREAK_ATTRIBUTE, value));
       
        return defaultValue;
    }
View Full Code Here

        else if (FXG_VERTICALALIGN_JUSTIFY_VALUE.equals(value))
            return VerticalAlign.JUSTIFY;
        else if (FXG_INHERIT_VALUE.equals(value))
            return VerticalAlign.INHERIT;
       
        problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                node.getStartColumn(), FXG_VERTICALALIGN_ATTRIBUTE, value));
       
        return defaultValue;
    }
View Full Code Here

                }
            }
            else
            {
                //Unknown LinkFormat element.
                problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), node.getNodeName(), propertyName));
            }
        }
        else
        {
View Full Code Here

                }
            }
            else
            {
                //Unknown LinkFormat element.
                problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), node.getNodeName(), propertyName));
            }
        }
        else
        {
View Full Code Here

            {
                return BaselineShift.newInstance(BaselineShiftAsEnum.SUBSCRIPT);
            }
               
            //Unknown baseline shift.
            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), name, value));
           
            return BaselineShift.newInstance(defaultValue);
        }
    }
View Full Code Here

            {
                return NumberInherit.newInstance(NumberInheritAsEnum.INHERIT);
            }

            //Unknown number inherit
            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                     node.getStartColumn(), name, value));
               
            return NumberInherit.newInstance(defaultValue);
        }
    }
View Full Code Here

                }
            }
            else
            {
                //Unknown LinkFormat element.
                problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), node.getNodeName(), propertyName));
            }
        }
        else
        {
View Full Code Here

        }
        else if (fileVersion.equalTo(FXGVersion.v1_0))
        {
            // Rest of the blend modes are unknown for FXG 1.0
            //Unknown blend mode: {0}.
            problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(),
                    getStartLine(), getStartColumn(), FXG_BLENDMODE_ATTRIBUTE, value));
        }
        else if (FXG_BLENDMODE_COLORDOGE_VALUE.equals(value))
        {
            return BlendMode.COLORDODGE;
        }
        else if (FXG_BLENDMODE_COLORBURN_VALUE.equals(value))
        {
            return BlendMode.COLORBURN;
        }
        else if (FXG_BLENDMODE_EXCLUSION_VALUE.equals(value))
        {
            return BlendMode.EXCLUSION;
        }
        else if (FXG_BLENDMODE_SOFTLIGHT_VALUE.equals(value))
        {
            return BlendMode.SOFTLIGHT;
        }
        else if (FXG_BLENDMODE_HUE_VALUE.equals(value))
        {
            return BlendMode.HUE;
        }
        else if (FXG_BLENDMODE_SATURATION_VALUE.equals(value))
        {
            return BlendMode.SATURATION;
        }
        else if (FXG_BLENDMODE_COLOR_VALUE.equals(value))
        {
            return BlendMode.COLOR;
        }
        else if (FXG_BLENDMODE_LUMINOSITY_VALUE.equals(value))
        {
            return BlendMode.LUMINOSITY;
        }
        else if (FXG_BLENDMODE_AUTO_VALUE.equals(value))
        {
            return BlendMode.AUTO;
        }
        else
        {
            if (isVersionGreaterThanCompiler())
            {
                // Warning: Minor version of this FXG file is greater than minor
                // version supported by this compiler. Log a warning for an unknown
                // blend mode.
                FXGLog.getLogger().log(IFXGLogger.WARN, "UnknownBlendMode", null, getDocumentPath(), startLine, startColumn);
            }
            else
            {
              //Unknown blend mode: {0} for FXGVersion 2.0.
                problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(),
                        getStartLine(), getStartColumn(), FXG_BLENDMODE_ATTRIBUTE, value));
            }
        }
           
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.problems.FXGUnknownAttributeValueProblem

Copyright © 2018 www.massapicom. 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.