Examples of StandardDefs


Examples of flex2.compiler.mxml.lang.StandardDefs

                                       String packageName, String className, String genFileName)
    {
      //  load template

      Template template;
        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
        String styleDefTemplate = TEMPLATE_PATH + standardDefs.getStyleDefTemplate();

        try
    {
            template = VelocityManager.getTemplate(styleDefTemplate);
        }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

            ThreadLocalToolkit.addResolvedPath(path, asset.assetSource);
      }

        try
        {
            StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

            String templateName = standardDefs.getEmbedClassTemplate();
            Template template = VelocityManager.getTemplate(CODEGEN_TEMPLATE_PATH + templateName);
            if (template == null)
            {
                throw new TemplateException( templateName );
            }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        if (intern)
        {
            name = name.intern();
        }

        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
        MemberExpressionNode mxInternalGetterSelector =
            generateResolvedGetterSelector(nodeFactory, standardDefs.getCorePackage(), MX_INTERNAL);
        return nodeFactory.qualifiedIdentifier(mxInternalGetterSelector, name);
    }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        return false;
    }

    public String getAssociatedClass(DefineTag tag)
    {
        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
        return standardDefs.getCorePackage() + ".ByteArrayAsset";
    }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        // of framework.swc, but this prevents customers from using
        // skin assets from framework.swc in their runtime CSS
        // modules.
      if (!configuration.archiveClassesAndAssets())
      {
          StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();
         
            configuration.addExtern(standardDefs.CLASS_CSSSTYLEDECLARATION);
            configuration.addExtern(standardDefs.CLASS_DOWNLOADPROGRESSBAR);
            configuration.addExtern(standardDefs.CLASS_FLEXEVENT);
            configuration.addExtern(standardDefs.CLASS_FLEXSPRITE);
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

    }

    private VirtualFile generateSourceCodeFile(CompilationUnit compilationUnit, StyleModule styleModule)
    {
        Template template;
        StandardDefs standardDefs = compilationUnit.getStandardDefs();
        String templateName = TEMPLATE_PATH + (!configuration.archiveClassesAndAssets() ? standardDefs.getStyleModuleTemplate() : standardDefs.getStyleLibraryTemplate());

        try
        {
            template = VelocityManager.getTemplate(templateName);
        }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

  /**
   *
   */
  private final VirtualFile generateImplementation(MxmlDocument doc)
  {
      StandardDefs standardDefs = doc.getStandardDefs();
      String classDefTemplate = CLASSDEF_TEMPLATE_PATH + standardDefs.getClassDefTemplate();
      String classDefLibTemplate = CLASSDEF_TEMPLATE_PATH + standardDefs.getClassDefLibTemplate();

    //  load template
    Template template = VelocityManager.getTemplate(classDefTemplate, classDefLibTemplate);
    if (template == null)
    {
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        if (tag == null)
        {
            return null;
        }

        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

        String cls = null;
        String SKIN_SPRITE = standardDefs.getCorePackage() + ".SpriteAsset";

        if (tag instanceof DefineButton)
            cls = standardDefs.getCorePackage() + ".ButtonAsset";
        else if (tag instanceof DefineFont)
            cls = standardDefs.getCorePackage() + ".FontAsset";
        else if (tag instanceof DefineText)
            cls = standardDefs.getCorePackage() + ".TextFieldAsset";
        else if (tag instanceof DefineSound)
            cls = standardDefs.getCorePackage() + ".SoundAsset";
        else if (tag instanceof DefineBits)
            cls = standardDefs.getCorePackage() + ".BitmapAsset";
        else if (tag instanceof DefineSprite)
            cls = standardDefs.getCorePackage() + ".SpriteAsset";

        if (cls != null && (defineTag == null || defineTag.isAssignableFrom(tag.getClass())))
        {
            if (((tag instanceof DefineSprite) && ((DefineSprite)tag).framecount > 1) && (cls.equals( SKIN_SPRITE )))
            {
                cls = standardDefs.getCorePackage() + ".MovieClipAsset";
            }
            return cls;
        }

        if (defineTag == null)
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

        standardDefs.set(defs);
    }

    public static StandardDefs getStandardDefs()
    {
        StandardDefs defs = standardDefs.get();
        if (defs == null)
        {
            defs = StandardDefs.getStandardDefs("halo");
            setStandardDefs(defs);
        }
View Full Code Here

Examples of flex2.compiler.mxml.lang.StandardDefs

    }

    private String generateSource(String fullClassName, String baseClassName, ClassInfo classInfo)
        throws TranscoderException
    {
        StandardDefs standardDefs = ThreadLocalToolkit.getStandardDefs();

        boolean needsIBorder = !classInfo.implementsInterface(standardDefs.getCorePackage(), "IBorder");
        boolean needsBorderMetrics = !classInfo.definesGetter("borderMetrics", true);
        boolean needsIFlexDisplayObject = !classInfo.implementsInterface(standardDefs.getCorePackage(),
                                                                         "IFlexDisplayObject");
        boolean needsMeasuredHeight = !classInfo.definesGetter("measuredHeight", true);
        boolean needsMeasuredWidth = !classInfo.definesGetter("measuredWidth", true);
        boolean needsMove = !classInfo.definesFunction("move", true);
        boolean needsSetActualSize = !classInfo.definesFunction("setActualSize", true);
        boolean flexMovieClipOrSprite = (classInfo.extendsClass(NameFormatter.toColon(standardDefs.getCorePackage(),
                                                                                      "FlexMovieClip")) ||
                                         classInfo.extendsClass(NameFormatter.toColon(standardDefs.getCorePackage(),
                                                                                      "FlexSprite")));

        return generateSource(fullClassName, baseClassName, needsIBorder, needsBorderMetrics,
                              needsIFlexDisplayObject, needsMeasuredHeight, needsMeasuredWidth,
                              needsMove, needsSetActualSize, flexMovieClipOrSprite);
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.