Package flash.localization

Examples of flash.localization.LocalizationManager


                                            Map<QName, Long> swcDefSignatureChecksums, Map swcFileChecksums,
                                            Map<String, Long> archiveFileChecksums,
                                            RandomAccessFile f, String cacheName, FontManager fontManager)
        throws IOException
    {
        LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();
        PersistenceStore store = new PersistenceStore(configuration, f, fontManager);
        int count = -1;
        try
        {
            if ((count = store.read(fileSpec, sourceList, sourcePath, resources, bundlePath, sources, units,
                                    checksums, swcDefSignatureChecksums, swcFileChecksums, archiveFileChecksums)) < 0)
            {
                throw new IOException(l10n.getLocalizedTextString(new FailedToMatchCacheFile(cacheName)));
            }
        }
        finally
        {
            if (count >= 0 && ThreadLocalToolkit.getBenchmark() != null)
            {
                ThreadLocalToolkit.getBenchmark().benchmark(l10n.getLocalizedTextString(new LoadingCompilationUnits(count)));
            }
        }
    }
View Full Code Here


  /**
   *
   */
    public static final LocalizationManager setupLocalizationManager()
    {
        LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();

        if (l10n == null)
        {
            // set up for localizing messages
            l10n = new LocalizationManager();
            l10n.addLocalizer(new ResourceBundleLocalizer());
            ThreadLocalToolkit.setLocalizationManager(l10n);
        }

        return l10n;
    }
View Full Code Here

                charsetName = StyleParser.readCSSCharset(bufferedInputStream);
            }
            catch (StyleSheetInvalidCharset e)
            {
                // add filename to exception and log warning.
                LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();
                String message = l10n.getLocalizedTextString(
                            new StyleSheetInvalidCharset(cssPath, e.charsetName));
                handler.logError(message);
                return;
            }
View Full Code Here

  public void warnDeprecation(String deprecated, String replacement, int lineNumber)
  {
        if (checkDeprecation)
        {
            LocalizationManager l10n = ThreadLocalToolkit.getLocalizationManager();
            String message = l10n.getLocalizedTextString(new DeprecatedWarning(deprecated, replacement, "3.0"));

            if (mxmlPath != null)
            {
                messageHandler.logWarning(mxmlPath, lineNumber, message);
            }
View Full Code Here

TOP

Related Classes of flash.localization.LocalizationManager

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.