0 Replies Latest reply on Sep 9, 2009 11:06 AM by Paul Reilly

    [svn:fx-trunk] 10096: * Added flag to make the compiler report invalid styles in MXML as

    Paul Reilly Level 1

      Revision: 10096

      Author:   preilly@adobe.com

      Date:     2009-09-09 11:05:58 -0700 (Wed, 09 Sep 2009)

       

      Log Message:

      ***********

      • Added flag to make the compiler report invalid styles in MXML as

        warnings instead of errors.  This should allow folks to ease into

        the new "Compiler Errors For Other Theme's Styles" feature.

       

      QE notes:

      Doc notes:

      Bugs:

      Reviewer: Corey, Gaurav

      Cycloner:

      Tests run: checkintests

      Is noteworthy for integration: No

      Code-level description of changes:

       

        build.xml

        frameworks/tests/basicTests/graphics/views/comps/TextGraphicBasic1.mxml

        frameworks/tests/basicTests/graphics/views/comps/EllipseBasic2.mxml

        frameworks/tests/basicTests/graphics/views/comps/RectBasic3.mxml

       

          Revert unnecessary changes from revision 10087.

       

        modules/compiler/src/java/flex2/compiler_en.properties

       

          Replaced mxml.builder.ComponentBuilder.InvalidStyleTheme with

          mxml.builder.ComponentBuilder.InvalidStyleThemeError and

          mxml.builder.ComponentBuilder.InvalidStyleThemeWarning.

       

        modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

       

          Added reportInvalidStylesAsWarnings variable and accessors.

       

        modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

       

          Modified validate() to actually use themeNamesString.

       

        modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java

       

          Added reportInvalidStylesAsWarnings().

       

        modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java

       

          Modified unknown() to report invalid styles as warnings if

          reportInvalidStylesAsWarnings is true.

       

      Modified Paths:

      **************

          flex/sdk/trunk/build.xml

          flex/sdk/trunk/frameworks/projects/framework/build.xml

          flex/sdk/trunk/frameworks/tests/basicTests/graphics/views/comps/EllipseBasic2.mxml

          flex/sdk/trunk/frameworks/tests/basicTests/graphics/views/comps/RectBasic3.mxml

          flex/sdk/trunk/frameworks/tests/basicTests/graphics/views/comps/TextGraphicBasic1.mxml

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties