8012251: jjs should support -fx option

Wed, 24 Apr 2013 14:25:28 -0300

author
jlaskey
date
Wed, 24 Apr 2013 14:25:28 -0300
changeset 222
c0a10bbf6752
parent 221
e959c7969f3b
child 223
9ad1ebb44c86

8012251: jjs should support -fx option
Reviewed-by: sundar, attila, lagergren
Contributed-by: james.laskey@oracle.com

src/jdk/nashorn/internal/runtime/Context.java file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/ScriptEnvironment.java file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/Options.properties file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/base.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/bootstrap.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/controls.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/fxml.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/graphics.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/media.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/swing.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/swt.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/internal/runtime/resources/fx/web.js file | annotate | diff | comparison | revisions
src/jdk/nashorn/tools/Shell.java file | annotate | diff | comparison | revisions
tools/fxshell/jdk/nashorn/tools/FXShell.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/jdk/nashorn/internal/runtime/Context.java	Wed Apr 24 13:36:31 2013 +0200
     1.2 +++ b/src/jdk/nashorn/internal/runtime/Context.java	Wed Apr 24 14:25:28 2013 -0300
     1.3 @@ -54,7 +54,6 @@
     1.4  import jdk.nashorn.internal.ir.debug.ASTWriter;
     1.5  import jdk.nashorn.internal.ir.debug.PrintVisitor;
     1.6  import jdk.nashorn.internal.parser.Parser;
     1.7 -import jdk.nashorn.internal.runtime.linker.JavaAdapterFactory;
     1.8  import jdk.nashorn.internal.runtime.options.Options;
     1.9  
    1.10  /**
    1.11 @@ -415,6 +414,28 @@
    1.12          return ScriptRuntime.apply(func, evalThis);
    1.13      }
    1.14  
    1.15 +    private Source loadInternal(final String srcStr, final String prefix, final String resourcePath) {
    1.16 +        if (srcStr.startsWith(prefix)) {
    1.17 +            final String resource = resourcePath + srcStr.substring(prefix.length());
    1.18 +            // NOTE: even sandbox scripts should be able to load scripts in nashorn: scheme
    1.19 +            // These scripts are always available and are loaded from nashorn.jar's resources.
    1.20 +            return AccessController.doPrivileged(
    1.21 +                    new PrivilegedAction<Source>() {
    1.22 +                        @Override
    1.23 +                        public Source run() {
    1.24 +                            try {
    1.25 +                                final URL resURL = Context.class.getResource(resource);
    1.26 +                                return (resURL != null)? new Source(srcStr, resURL) : null;
    1.27 +                            } catch (final IOException exp) {
    1.28 +                                return null;
    1.29 +                            }
    1.30 +                        }
    1.31 +                    });
    1.32 +        }
    1.33 +
    1.34 +        return null;
    1.35 +    }
    1.36 +
    1.37      /**
    1.38       * Implementation of {@code load} Nashorn extension. Load a script file from a source
    1.39       * expression
    1.40 @@ -427,33 +448,18 @@
    1.41       * @throws IOException if source cannot be found or loaded
    1.42       */
    1.43      public Object load(final ScriptObject scope, final Object from) throws IOException {
    1.44 -        Object src = (from instanceof ConsString)?  from.toString() : from;
    1.45 +        final Object src = (from instanceof ConsString)?  from.toString() : from;
    1.46          Source source = null;
    1.47  
    1.48          // load accepts a String (which could be a URL or a file name), a File, a URL
    1.49          // or a ScriptObject that has "name" and "source" (string valued) properties.
    1.50          if (src instanceof String) {
    1.51              final String srcStr = (String)src;
    1.52 -            final File   file   = new File(srcStr);
    1.53 +            final File file = new File(srcStr);
    1.54              if (srcStr.indexOf(':') != -1) {
    1.55 -                if (srcStr.startsWith("nashorn:")) {
    1.56 -                    final String resource = "resources/" + srcStr.substring("nashorn:".length());
    1.57 -                    // NOTE: even sandbox scripts should be able to load scripts in nashorn: scheme
    1.58 -                    // These scripts are always available and are loaded from nashorn.jar's resources.
    1.59 -                    source = AccessController.doPrivileged(
    1.60 -                            new PrivilegedAction<Source>() {
    1.61 -                                @Override
    1.62 -                                public Source run() {
    1.63 -                                    try {
    1.64 -                                        final URL resURL = Context.class.getResource(resource);
    1.65 -                                        return (resURL != null)? new Source(srcStr, resURL) : null;
    1.66 -                                    } catch (final IOException exp) {
    1.67 -                                        return null;
    1.68 -                                    }
    1.69 -                                }
    1.70 -                            });
    1.71 -                } else {
    1.72 -                    URL url = null;
    1.73 +                if ((source = loadInternal(srcStr, "nashorn:", "resources/")) == null &&
    1.74 +                    (source = loadInternal(srcStr, "fx:", "resources/fx/")) == null) {
    1.75 +                    URL url;
    1.76                      try {
    1.77                          //check for malformed url. if malformed, it may still be a valid file
    1.78                          url = new URL(srcStr);
     2.1 --- a/src/jdk/nashorn/internal/runtime/ScriptEnvironment.java	Wed Apr 24 13:36:31 2013 +0200
     2.2 +++ b/src/jdk/nashorn/internal/runtime/ScriptEnvironment.java	Wed Apr 24 14:25:28 2013 -0300
     2.3 @@ -82,6 +82,9 @@
     2.4      /** Show full Nashorn version */
     2.5      public final boolean _fullversion;
     2.6  
     2.7 +    /** Launch using as fx application */
     2.8 +    public final boolean _fx;
     2.9 +
    2.10      /** Should lazy compilation take place */
    2.11      public final boolean _lazy_compilation;
    2.12  
    2.13 @@ -158,6 +161,7 @@
    2.14          _early_lvalue_error   = options.getBoolean("early.lvalue.error");
    2.15          _empty_statements     = options.getBoolean("empty.statements");
    2.16          _fullversion          = options.getBoolean("fullversion");
    2.17 +        _fx                   = options.getBoolean("fx");
    2.18          _lazy_compilation     = options.getBoolean("lazy.compilation");
    2.19          _loader_per_compile   = options.getBoolean("loader.per.compile");
    2.20          _no_syntax_extensions = options.getBoolean("no.syntax.extensions");
     3.1 --- a/src/jdk/nashorn/internal/runtime/resources/Options.properties	Wed Apr 24 13:36:31 2013 +0200
     3.2 +++ b/src/jdk/nashorn/internal/runtime/resources/Options.properties	Wed Apr 24 14:25:28 2013 -0300
     3.3 @@ -144,6 +144,12 @@
     3.4      desc="Print full version info of Nashorn." \
     3.5  }
     3.6  
     3.7 +nashorn.option.fx = {                           \
     3.8 +    name="-fx",                                 \
     3.9 +    desc="Launch script as an fx application.", \
    3.10 +    default=false                               \
    3.11 +}
    3.12 +
    3.13  nashorn.option.log = {                                                       \
    3.14      name="--log",                                                            \
    3.15      is_undocumented=true,                                                    \
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/base.js	Wed Apr 24 14:25:28 2013 -0300
     4.3 @@ -0,0 +1,223 @@
     4.4 +/*
     4.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     4.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4.7 + *
     4.8 + * This code is free software; you can redistribute it and/or modify it
     4.9 + * under the terms of the GNU General Public License version 2 only, as
    4.10 + * published by the Free Software Foundation.  Oracle designates this
    4.11 + * particular file as subject to the "Classpath" exception as provided
    4.12 + * by Oracle in the LICENSE file that accompanied this code.
    4.13 + *
    4.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    4.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    4.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    4.17 + * version 2 for more details (a copy is included in the LICENSE file that
    4.18 + * accompanied this code).
    4.19 + *
    4.20 + * You should have received a copy of the GNU General Public License version
    4.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    4.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    4.23 + *
    4.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    4.25 + * or visit www.oracle.com if you need additional information or have any
    4.26 + * questions.
    4.27 + */
    4.28 +
    4.29 +Scene                                   = Java.type("javafx.scene.Scene");
    4.30 +Group                                   = Java.type("javafx.scene.Group");
    4.31 +Stage                                   = Java.type("javafx.stage.Stage");
    4.32 +
    4.33 +Binding                                 = Java.type("javafx.beans.binding.Binding");
    4.34 +Bindings                                = Java.type("javafx.beans.binding.Bindings");
    4.35 +BooleanBinding                          = Java.type("javafx.beans.binding.BooleanBinding");
    4.36 +BooleanExpression                       = Java.type("javafx.beans.binding.BooleanExpression");
    4.37 +DoubleBinding                           = Java.type("javafx.beans.binding.DoubleBinding");
    4.38 +DoubleExpression                        = Java.type("javafx.beans.binding.DoubleExpression");
    4.39 +FloatBinding                            = Java.type("javafx.beans.binding.FloatBinding");
    4.40 +FloatExpression                         = Java.type("javafx.beans.binding.FloatExpression");
    4.41 +IntegerBinding                          = Java.type("javafx.beans.binding.IntegerBinding");
    4.42 +IntegerExpression                       = Java.type("javafx.beans.binding.IntegerExpression");
    4.43 +ListBinding                             = Java.type("javafx.beans.binding.ListBinding");
    4.44 +ListExpression                          = Java.type("javafx.beans.binding.ListExpression");
    4.45 +LongBinding                             = Java.type("javafx.beans.binding.LongBinding");
    4.46 +LongExpression                          = Java.type("javafx.beans.binding.LongExpression");
    4.47 +MapBinding                              = Java.type("javafx.beans.binding.MapBinding");
    4.48 +MapExpression                           = Java.type("javafx.beans.binding.MapExpression");
    4.49 +NumberBinding                           = Java.type("javafx.beans.binding.NumberBinding");
    4.50 +NumberExpression                        = Java.type("javafx.beans.binding.NumberExpression");
    4.51 +NumberExpressionBase                    = Java.type("javafx.beans.binding.NumberExpressionBase");
    4.52 +ObjectBinding                           = Java.type("javafx.beans.binding.ObjectBinding");
    4.53 +ObjectExpression                        = Java.type("javafx.beans.binding.ObjectExpression");
    4.54 +SetBinding                              = Java.type("javafx.beans.binding.SetBinding");
    4.55 +SetExpression                           = Java.type("javafx.beans.binding.SetExpression");
    4.56 +StringBinding                           = Java.type("javafx.beans.binding.StringBinding");
    4.57 +StringExpression                        = Java.type("javafx.beans.binding.StringExpression");
    4.58 +When                                    = Java.type("javafx.beans.binding.When");
    4.59 +DefaultProperty                         = Java.type("javafx.beans.DefaultProperty");
    4.60 +InvalidationListener                    = Java.type("javafx.beans.InvalidationListener");
    4.61 +Observable                              = Java.type("javafx.beans.Observable");
    4.62 +JavaBeanBooleanProperty                 = Java.type("javafx.beans.property.adapter.JavaBeanBooleanProperty");
    4.63 +JavaBeanBooleanPropertyBuilder          = Java.type("javafx.beans.property.adapter.JavaBeanBooleanPropertyBuilder");
    4.64 +JavaBeanDoubleProperty                  = Java.type("javafx.beans.property.adapter.JavaBeanDoubleProperty");
    4.65 +JavaBeanDoublePropertyBuilder           = Java.type("javafx.beans.property.adapter.JavaBeanDoublePropertyBuilder");
    4.66 +JavaBeanFloatProperty                   = Java.type("javafx.beans.property.adapter.JavaBeanFloatProperty");
    4.67 +JavaBeanFloatPropertyBuilder            = Java.type("javafx.beans.property.adapter.JavaBeanFloatPropertyBuilder");
    4.68 +JavaBeanIntegerProperty                 = Java.type("javafx.beans.property.adapter.JavaBeanIntegerProperty");
    4.69 +JavaBeanIntegerPropertyBuilder          = Java.type("javafx.beans.property.adapter.JavaBeanIntegerPropertyBuilder");
    4.70 +JavaBeanLongProperty                    = Java.type("javafx.beans.property.adapter.JavaBeanLongProperty");
    4.71 +JavaBeanLongPropertyBuilder             = Java.type("javafx.beans.property.adapter.JavaBeanLongPropertyBuilder");
    4.72 +JavaBeanObjectProperty                  = Java.type("javafx.beans.property.adapter.JavaBeanObjectProperty");
    4.73 +JavaBeanObjectPropertyBuilder           = Java.type("javafx.beans.property.adapter.JavaBeanObjectPropertyBuilder");
    4.74 +JavaBeanProperty                        = Java.type("javafx.beans.property.adapter.JavaBeanProperty");
    4.75 +JavaBeanStringProperty                  = Java.type("javafx.beans.property.adapter.JavaBeanStringProperty");
    4.76 +JavaBeanStringPropertyBuilder           = Java.type("javafx.beans.property.adapter.JavaBeanStringPropertyBuilder");
    4.77 +ReadOnlyJavaBeanBooleanProperty         = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanBooleanProperty");
    4.78 +ReadOnlyJavaBeanBooleanPropertyBuilder  = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanBooleanPropertyBuilder");
    4.79 +ReadOnlyJavaBeanDoubleProperty          = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanDoubleProperty");
    4.80 +ReadOnlyJavaBeanDoublePropertyBuilder   = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanDoublePropertyBuilder");
    4.81 +ReadOnlyJavaBeanFloatProperty           = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanFloatProperty");
    4.82 +ReadOnlyJavaBeanFloatPropertyBuilder    = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanFloatPropertyBuilder");
    4.83 +ReadOnlyJavaBeanIntegerProperty         = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanIntegerProperty");
    4.84 +ReadOnlyJavaBeanIntegerPropertyBuilder  = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanIntegerPropertyBuilder");
    4.85 +ReadOnlyJavaBeanLongProperty            = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanLongProperty");
    4.86 +ReadOnlyJavaBeanLongPropertyBuilder     = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanLongPropertyBuilder");
    4.87 +ReadOnlyJavaBeanObjectProperty          = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanObjectProperty");
    4.88 +ReadOnlyJavaBeanObjectPropertyBuilder   = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanObjectPropertyBuilder");
    4.89 +ReadOnlyJavaBeanProperty                = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanProperty");
    4.90 +ReadOnlyJavaBeanStringProperty          = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanStringProperty");
    4.91 +ReadOnlyJavaBeanStringPropertyBuilder   = Java.type("javafx.beans.property.adapter.ReadOnlyJavaBeanStringPropertyBuilder");
    4.92 +BooleanProperty                         = Java.type("javafx.beans.property.BooleanProperty");
    4.93 +BooleanPropertyBase                     = Java.type("javafx.beans.property.BooleanPropertyBase");
    4.94 +DoubleProperty                          = Java.type("javafx.beans.property.DoubleProperty");
    4.95 +DoublePropertyBase                      = Java.type("javafx.beans.property.DoublePropertyBase");
    4.96 +FloatProperty                           = Java.type("javafx.beans.property.FloatProperty");
    4.97 +FloatPropertyBase                       = Java.type("javafx.beans.property.FloatPropertyBase");
    4.98 +IntegerProperty                         = Java.type("javafx.beans.property.IntegerProperty");
    4.99 +IntegerPropertyBase                     = Java.type("javafx.beans.property.IntegerPropertyBase");
   4.100 +ListProperty                            = Java.type("javafx.beans.property.ListProperty");
   4.101 +ListPropertyBase                        = Java.type("javafx.beans.property.ListPropertyBase");
   4.102 +LongProperty                            = Java.type("javafx.beans.property.LongProperty");
   4.103 +LongPropertyBase                        = Java.type("javafx.beans.property.LongPropertyBase");
   4.104 +MapProperty                             = Java.type("javafx.beans.property.MapProperty");
   4.105 +MapPropertyBase                         = Java.type("javafx.beans.property.MapPropertyBase");
   4.106 +ObjectProperty                          = Java.type("javafx.beans.property.ObjectProperty");
   4.107 +ObjectPropertyBase                      = Java.type("javafx.beans.property.ObjectPropertyBase");
   4.108 +Property                                = Java.type("javafx.beans.property.Property");
   4.109 +ReadOnlyBooleanProperty                 = Java.type("javafx.beans.property.ReadOnlyBooleanProperty");
   4.110 +ReadOnlyBooleanPropertyBase             = Java.type("javafx.beans.property.ReadOnlyBooleanPropertyBase");
   4.111 +ReadOnlyBooleanWrapper                  = Java.type("javafx.beans.property.ReadOnlyBooleanWrapper");
   4.112 +ReadOnlyDoubleProperty                  = Java.type("javafx.beans.property.ReadOnlyDoubleProperty");
   4.113 +ReadOnlyDoublePropertyBase              = Java.type("javafx.beans.property.ReadOnlyDoublePropertyBase");
   4.114 +ReadOnlyDoubleWrapper                   = Java.type("javafx.beans.property.ReadOnlyDoubleWrapper");
   4.115 +ReadOnlyFloatProperty                   = Java.type("javafx.beans.property.ReadOnlyFloatProperty");
   4.116 +ReadOnlyFloatPropertyBase               = Java.type("javafx.beans.property.ReadOnlyFloatPropertyBase");
   4.117 +ReadOnlyFloatWrapper                    = Java.type("javafx.beans.property.ReadOnlyFloatWrapper");
   4.118 +ReadOnlyIntegerProperty                 = Java.type("javafx.beans.property.ReadOnlyIntegerProperty");
   4.119 +ReadOnlyIntegerPropertyBase             = Java.type("javafx.beans.property.ReadOnlyIntegerPropertyBase");
   4.120 +ReadOnlyIntegerWrapper                  = Java.type("javafx.beans.property.ReadOnlyIntegerWrapper");
   4.121 +ReadOnlyListProperty                    = Java.type("javafx.beans.property.ReadOnlyListProperty");
   4.122 +ReadOnlyListPropertyBase                = Java.type("javafx.beans.property.ReadOnlyListPropertyBase");
   4.123 +ReadOnlyListWrapper                     = Java.type("javafx.beans.property.ReadOnlyListWrapper");
   4.124 +ReadOnlyLongProperty                    = Java.type("javafx.beans.property.ReadOnlyLongProperty");
   4.125 +ReadOnlyLongPropertyBase                = Java.type("javafx.beans.property.ReadOnlyLongPropertyBase");
   4.126 +ReadOnlyLongWrapper                     = Java.type("javafx.beans.property.ReadOnlyLongWrapper");
   4.127 +ReadOnlyMapProperty                     = Java.type("javafx.beans.property.ReadOnlyMapProperty");
   4.128 +ReadOnlyMapPropertyBase                 = Java.type("javafx.beans.property.ReadOnlyMapPropertyBase");
   4.129 +ReadOnlyMapWrapper                      = Java.type("javafx.beans.property.ReadOnlyMapWrapper");
   4.130 +ReadOnlyObjectProperty                  = Java.type("javafx.beans.property.ReadOnlyObjectProperty");
   4.131 +ReadOnlyObjectPropertyBase              = Java.type("javafx.beans.property.ReadOnlyObjectPropertyBase");
   4.132 +ReadOnlyObjectWrapper                   = Java.type("javafx.beans.property.ReadOnlyObjectWrapper");
   4.133 +ReadOnlyProperty                        = Java.type("javafx.beans.property.ReadOnlyProperty");
   4.134 +ReadOnlySetProperty                     = Java.type("javafx.beans.property.ReadOnlySetProperty");
   4.135 +ReadOnlySetPropertyBase                 = Java.type("javafx.beans.property.ReadOnlySetPropertyBase");
   4.136 +ReadOnlySetWrapper                      = Java.type("javafx.beans.property.ReadOnlySetWrapper");
   4.137 +ReadOnlyStringProperty                  = Java.type("javafx.beans.property.ReadOnlyStringProperty");
   4.138 +ReadOnlyStringPropertyBase              = Java.type("javafx.beans.property.ReadOnlyStringPropertyBase");
   4.139 +ReadOnlyStringWrapper                   = Java.type("javafx.beans.property.ReadOnlyStringWrapper");
   4.140 +SetProperty                             = Java.type("javafx.beans.property.SetProperty");
   4.141 +SetPropertyBase                         = Java.type("javafx.beans.property.SetPropertyBase");
   4.142 +SimpleBooleanProperty                   = Java.type("javafx.beans.property.SimpleBooleanProperty");
   4.143 +SimpleDoubleProperty                    = Java.type("javafx.beans.property.SimpleDoubleProperty");
   4.144 +SimpleFloatProperty                     = Java.type("javafx.beans.property.SimpleFloatProperty");
   4.145 +SimpleIntegerProperty                   = Java.type("javafx.beans.property.SimpleIntegerProperty");
   4.146 +SimpleListProperty                      = Java.type("javafx.beans.property.SimpleListProperty");
   4.147 +SimpleLongProperty                      = Java.type("javafx.beans.property.SimpleLongProperty");
   4.148 +SimpleMapProperty                       = Java.type("javafx.beans.property.SimpleMapProperty");
   4.149 +SimpleObjectProperty                    = Java.type("javafx.beans.property.SimpleObjectProperty");
   4.150 +SimpleSetProperty                       = Java.type("javafx.beans.property.SimpleSetProperty");
   4.151 +SimpleStringProperty                    = Java.type("javafx.beans.property.SimpleStringProperty");
   4.152 +StringProperty                          = Java.type("javafx.beans.property.StringProperty");
   4.153 +StringPropertyBase                      = Java.type("javafx.beans.property.StringPropertyBase");
   4.154 +ChangeListener                          = Java.type("javafx.beans.value.ChangeListener");
   4.155 +ObservableBooleanValue                  = Java.type("javafx.beans.value.ObservableBooleanValue");
   4.156 +ObservableDoubleValue                   = Java.type("javafx.beans.value.ObservableDoubleValue");
   4.157 +ObservableFloatValue                    = Java.type("javafx.beans.value.ObservableFloatValue");
   4.158 +ObservableIntegerValue                  = Java.type("javafx.beans.value.ObservableIntegerValue");
   4.159 +ObservableListValue                     = Java.type("javafx.beans.value.ObservableListValue");
   4.160 +ObservableLongValue                     = Java.type("javafx.beans.value.ObservableLongValue");
   4.161 +ObservableMapValue                      = Java.type("javafx.beans.value.ObservableMapValue");
   4.162 +ObservableNumberValue                   = Java.type("javafx.beans.value.ObservableNumberValue");
   4.163 +ObservableObjectValue                   = Java.type("javafx.beans.value.ObservableObjectValue");
   4.164 +ObservableSetValue                      = Java.type("javafx.beans.value.ObservableSetValue");
   4.165 +ObservableStringValue                   = Java.type("javafx.beans.value.ObservableStringValue");
   4.166 +ObservableValue                         = Java.type("javafx.beans.value.ObservableValue");
   4.167 +ObservableValueBase                     = Java.type("javafx.beans.value.ObservableValueBase");
   4.168 +WeakChangeListener                      = Java.type("javafx.beans.value.WeakChangeListener");
   4.169 +WritableBooleanValue                    = Java.type("javafx.beans.value.WritableBooleanValue");
   4.170 +WritableDoubleValue                     = Java.type("javafx.beans.value.WritableDoubleValue");
   4.171 +WritableFloatValue                      = Java.type("javafx.beans.value.WritableFloatValue");
   4.172 +WritableIntegerValue                    = Java.type("javafx.beans.value.WritableIntegerValue");
   4.173 +WritableListValue                       = Java.type("javafx.beans.value.WritableListValue");
   4.174 +WritableLongValue                       = Java.type("javafx.beans.value.WritableLongValue");
   4.175 +WritableMapValue                        = Java.type("javafx.beans.value.WritableMapValue");
   4.176 +WritableNumberValue                     = Java.type("javafx.beans.value.WritableNumberValue");
   4.177 +WritableObjectValue                     = Java.type("javafx.beans.value.WritableObjectValue");
   4.178 +WritableSetValue                        = Java.type("javafx.beans.value.WritableSetValue");
   4.179 +WritableStringValue                     = Java.type("javafx.beans.value.WritableStringValue");
   4.180 +WritableValue                           = Java.type("javafx.beans.value.WritableValue");
   4.181 +WeakInvalidationListener                = Java.type("javafx.beans.WeakInvalidationListener");
   4.182 +WeakListener                            = Java.type("javafx.beans.WeakListener");
   4.183 +FXCollections                           = Java.type("javafx.collections.FXCollections");
   4.184 +ListChangeListener                      = Java.type("javafx.collections.ListChangeListener");
   4.185 +ListChangeListener$Change               = Java.type("javafx.collections.ListChangeListener$Change");
   4.186 +MapChangeListener                       = Java.type("javafx.collections.MapChangeListener");
   4.187 +MapChangeListener$Change                = Java.type("javafx.collections.MapChangeListener$Change");
   4.188 +ObservableList                          = Java.type("javafx.collections.ObservableList");
   4.189 +ObservableMap                           = Java.type("javafx.collections.ObservableMap");
   4.190 +ObservableSet                           = Java.type("javafx.collections.ObservableSet");
   4.191 +SetChangeListener                       = Java.type("javafx.collections.SetChangeListener");
   4.192 +SetChangeListener$Change                = Java.type("javafx.collections.SetChangeListener$Change");
   4.193 +WeakListChangeListener                  = Java.type("javafx.collections.WeakListChangeListener");
   4.194 +WeakMapChangeListener                   = Java.type("javafx.collections.WeakMapChangeListener");
   4.195 +WeakSetChangeListener                   = Java.type("javafx.collections.WeakSetChangeListener");
   4.196 +ActionEvent                             = Java.type("javafx.event.ActionEvent");
   4.197 +Event                                   = Java.type("javafx.event.Event");
   4.198 +EventDispatchChain                      = Java.type("javafx.event.EventDispatchChain");
   4.199 +EventDispatcher                         = Java.type("javafx.event.EventDispatcher");
   4.200 +EventHandler                            = Java.type("javafx.event.EventHandler");
   4.201 +EventTarget                             = Java.type("javafx.event.EventTarget");
   4.202 +EventType                               = Java.type("javafx.event.EventType");
   4.203 +Builder                                 = Java.type("javafx.util.Builder");
   4.204 +BuilderFactory                          = Java.type("javafx.util.BuilderFactory");
   4.205 +Callback                                = Java.type("javafx.util.Callback");
   4.206 +BigDecimalStringConverter               = Java.type("javafx.util.converter.BigDecimalStringConverter");
   4.207 +BigIntegerStringConverter               = Java.type("javafx.util.converter.BigIntegerStringConverter");
   4.208 +BooleanStringConverter                  = Java.type("javafx.util.converter.BooleanStringConverter");
   4.209 +ByteStringConverter                     = Java.type("javafx.util.converter.ByteStringConverter");
   4.210 +CharacterStringConverter                = Java.type("javafx.util.converter.CharacterStringConverter");
   4.211 +CurrencyStringConverter                 = Java.type("javafx.util.converter.CurrencyStringConverter");
   4.212 +DateStringConverter                     = Java.type("javafx.util.converter.DateStringConverter");
   4.213 +DateTimeStringConverter                 = Java.type("javafx.util.converter.DateTimeStringConverter");
   4.214 +DefaultStringConverter                  = Java.type("javafx.util.converter.DefaultStringConverter");
   4.215 +DoubleStringConverter                   = Java.type("javafx.util.converter.DoubleStringConverter");
   4.216 +FloatStringConverter                    = Java.type("javafx.util.converter.FloatStringConverter");
   4.217 +FormatStringConverter                   = Java.type("javafx.util.converter.FormatStringConverter");
   4.218 +IntegerStringConverter                  = Java.type("javafx.util.converter.IntegerStringConverter");
   4.219 +LongStringConverter                     = Java.type("javafx.util.converter.LongStringConverter");
   4.220 +NumberStringConverter                   = Java.type("javafx.util.converter.NumberStringConverter");
   4.221 +PercentageStringConverter               = Java.type("javafx.util.converter.PercentageStringConverter");
   4.222 +ShortStringConverter                    = Java.type("javafx.util.converter.ShortStringConverter");
   4.223 +TimeStringConverter                     = Java.type("javafx.util.converter.TimeStringConverter");
   4.224 +Duration                                = Java.type("javafx.util.Duration");
   4.225 +Pair                                    = Java.type("javafx.util.Pair");
   4.226 +StringConverter                         = Java.type("javafx.util.StringConverter");
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/bootstrap.js	Wed Apr 24 14:25:28 2013 -0300
     5.3 @@ -0,0 +1,74 @@
     5.4 +/*
     5.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     5.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5.7 + *
     5.8 + * This code is free software; you can redistribute it and/or modify it
     5.9 + * under the terms of the GNU General Public License version 2 only, as
    5.10 + * published by the Free Software Foundation.  Oracle designates this
    5.11 + * particular file as subject to the "Classpath" exception as provided
    5.12 + * by Oracle in the LICENSE file that accompanied this code.
    5.13 + *
    5.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    5.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    5.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    5.17 + * version 2 for more details (a copy is included in the LICENSE file that
    5.18 + * accompanied this code).
    5.19 + *
    5.20 + * You should have received a copy of the GNU General Public License version
    5.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    5.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    5.23 + *
    5.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    5.25 + * or visit www.oracle.com if you need additional information or have any
    5.26 + * questions.
    5.27 + */
    5.28 +
    5.29 +// Check for fx presence.
    5.30 +if (typeof javafx.application.Application != "function") {
    5.31 +    print("JavaFX is not available.");
    5.32 +    exit(1);
    5.33 +}
    5.34 +
    5.35 +// Extend the javafx.application.Application class overriding init, start and stop.
    5.36 +com.sun.javafx.application.LauncherImpl.launchApplication((Java.extend(javafx.application.Application, {
    5.37 +    // Overridden javafx.application.Application.init();
    5.38 +    init: function() {
    5.39 +        // Java FX packages and classes must be defined here because
    5.40 +        // they may not be viable until launch time due to clinit ordering.
    5.41 +
    5.42 +        load("fx:base.js");
    5.43 +    },
    5.44 +
    5.45 +    // Overridden javafx.application.Application.start(Stage stage);
    5.46 +    start: function(stage) {
    5.47 +        // Set up stage global.
    5.48 +        $STAGE = stage;
    5.49 +
    5.50 +        // Load user FX scripts.
    5.51 +        for each (var script in $SCRIPTS) {
    5.52 +            load(script);
    5.53 +        }
    5.54 +
    5.55 +        // Call the global init function if present.
    5.56 +        if ($GLOBAL.init) {
    5.57 +            init();
    5.58 +        }
    5.59 +
    5.60 +        // Call the global start function if present.  Otherwise show the stage.
    5.61 +        if ($GLOBAL.start) {
    5.62 +            start(stage);
    5.63 +        } else {
    5.64 +            stage.show();
    5.65 +        }
    5.66 +    },
    5.67 +
    5.68 +    // Overridden javafx.application.Application.stop();
    5.69 +    stop: function() {
    5.70 +        // Call the global stop function if present.
    5.71 +        if ($GLOBAL.stop) {
    5.72 +            stop();
    5.73 +        }
    5.74 +    }
    5.75 +
    5.76 +    // No arguments passed to application (handled thru $ARG.)
    5.77 +})).class, new (Java.type("java.lang.String[]"))(0));
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/controls.js	Wed Apr 24 14:25:28 2013 -0300
     6.3 @@ -0,0 +1,225 @@
     6.4 +/*
     6.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     6.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6.7 + *
     6.8 + * This code is free software; you can redistribute it and/or modify it
     6.9 + * under the terms of the GNU General Public License version 2 only, as
    6.10 + * published by the Free Software Foundation.  Oracle designates this
    6.11 + * particular file as subject to the "Classpath" exception as provided
    6.12 + * by Oracle in the LICENSE file that accompanied this code.
    6.13 + *
    6.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    6.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    6.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    6.17 + * version 2 for more details (a copy is included in the LICENSE file that
    6.18 + * accompanied this code).
    6.19 + *
    6.20 + * You should have received a copy of the GNU General Public License version
    6.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    6.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    6.23 + *
    6.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    6.25 + * or visit www.oracle.com if you need additional information or have any
    6.26 + * questions.
    6.27 + */
    6.28 +
    6.29 +AreaChart                               = Java.type("javafx.scene.chart.AreaChart");
    6.30 +AreaChartBuilder                        = Java.type("javafx.scene.chart.AreaChartBuilder");
    6.31 +Axis                                    = Java.type("javafx.scene.chart.Axis");
    6.32 +Axis$TickMark                           = Java.type("javafx.scene.chart.Axis$TickMark");
    6.33 +AxisBuilder                             = Java.type("javafx.scene.chart.AxisBuilder");
    6.34 +BarChart                                = Java.type("javafx.scene.chart.BarChart");
    6.35 +BarChartBuilder                         = Java.type("javafx.scene.chart.BarChartBuilder");
    6.36 +BubbleChart                             = Java.type("javafx.scene.chart.BubbleChart");
    6.37 +BubbleChartBuilder                      = Java.type("javafx.scene.chart.BubbleChartBuilder");
    6.38 +CategoryAxis                            = Java.type("javafx.scene.chart.CategoryAxis");
    6.39 +CategoryAxisBuilder                     = Java.type("javafx.scene.chart.CategoryAxisBuilder");
    6.40 +Chart                                   = Java.type("javafx.scene.chart.Chart");
    6.41 +ChartBuilder                            = Java.type("javafx.scene.chart.ChartBuilder");
    6.42 +LineChart                               = Java.type("javafx.scene.chart.LineChart");
    6.43 +LineChartBuilder                        = Java.type("javafx.scene.chart.LineChartBuilder");
    6.44 +NumberAxis                              = Java.type("javafx.scene.chart.NumberAxis");
    6.45 +NumberAxis$DefaultFormatter             = Java.type("javafx.scene.chart.NumberAxis$DefaultFormatter");
    6.46 +NumberAxisBuilder                       = Java.type("javafx.scene.chart.NumberAxisBuilder");
    6.47 +PieChart                                = Java.type("javafx.scene.chart.PieChart");
    6.48 +PieChart$Data                           = Java.type("javafx.scene.chart.PieChart$Data");
    6.49 +PieChartBuilder                         = Java.type("javafx.scene.chart.PieChartBuilder");
    6.50 +ScatterChart                            = Java.type("javafx.scene.chart.ScatterChart");
    6.51 +ScatterChartBuilder                     = Java.type("javafx.scene.chart.ScatterChartBuilder");
    6.52 +StackedAreaChart                        = Java.type("javafx.scene.chart.StackedAreaChart");
    6.53 +StackedAreaChartBuilder                 = Java.type("javafx.scene.chart.StackedAreaChartBuilder");
    6.54 +StackedBarChart                         = Java.type("javafx.scene.chart.StackedBarChart");
    6.55 +StackedBarChartBuilder                  = Java.type("javafx.scene.chart.StackedBarChartBuilder");
    6.56 +ValueAxis                               = Java.type("javafx.scene.chart.ValueAxis");
    6.57 +ValueAxisBuilder                        = Java.type("javafx.scene.chart.ValueAxisBuilder");
    6.58 +XYChart                                 = Java.type("javafx.scene.chart.XYChart");
    6.59 +XYChart$Data                            = Java.type("javafx.scene.chart.XYChart$Data");
    6.60 +XYChart$Series                          = Java.type("javafx.scene.chart.XYChart$Series");
    6.61 +XYChartBuilder                          = Java.type("javafx.scene.chart.XYChartBuilder");
    6.62 +Accordion                               = Java.type("javafx.scene.control.Accordion");
    6.63 +AccordionBuilder                        = Java.type("javafx.scene.control.AccordionBuilder");
    6.64 +Button                                  = Java.type("javafx.scene.control.Button");
    6.65 +ButtonBase                              = Java.type("javafx.scene.control.ButtonBase");
    6.66 +ButtonBaseBuilder                       = Java.type("javafx.scene.control.ButtonBaseBuilder");
    6.67 +ButtonBuilder                           = Java.type("javafx.scene.control.ButtonBuilder");
    6.68 +Cell                                    = Java.type("javafx.scene.control.Cell");
    6.69 +CheckBoxListCell                        = Java.type("javafx.scene.control.cell.CheckBoxListCell");
    6.70 +CheckBoxListCellBuilder                 = Java.type("javafx.scene.control.cell.CheckBoxListCellBuilder");
    6.71 +CheckBoxTableCell                       = Java.type("javafx.scene.control.cell.CheckBoxTableCell");
    6.72 +CheckBoxTableCellBuilder                = Java.type("javafx.scene.control.cell.CheckBoxTableCellBuilder");
    6.73 +CheckBoxTreeCell                        = Java.type("javafx.scene.control.cell.CheckBoxTreeCell");
    6.74 +CheckBoxTreeCellBuilder                 = Java.type("javafx.scene.control.cell.CheckBoxTreeCellBuilder");
    6.75 +ChoiceBoxListCell                       = Java.type("javafx.scene.control.cell.ChoiceBoxListCell");
    6.76 +ChoiceBoxListCellBuilder                = Java.type("javafx.scene.control.cell.ChoiceBoxListCellBuilder");
    6.77 +ChoiceBoxTableCell                      = Java.type("javafx.scene.control.cell.ChoiceBoxTableCell");
    6.78 +ChoiceBoxTableCellBuilder               = Java.type("javafx.scene.control.cell.ChoiceBoxTableCellBuilder");
    6.79 +ChoiceBoxTreeCell                       = Java.type("javafx.scene.control.cell.ChoiceBoxTreeCell");
    6.80 +ChoiceBoxTreeCellBuilder                = Java.type("javafx.scene.control.cell.ChoiceBoxTreeCellBuilder");
    6.81 +ComboBoxListCell                        = Java.type("javafx.scene.control.cell.ComboBoxListCell");
    6.82 +ComboBoxListCellBuilder                 = Java.type("javafx.scene.control.cell.ComboBoxListCellBuilder");
    6.83 +ComboBoxTableCell                       = Java.type("javafx.scene.control.cell.ComboBoxTableCell");
    6.84 +ComboBoxTableCellBuilder                = Java.type("javafx.scene.control.cell.ComboBoxTableCellBuilder");
    6.85 +ComboBoxTreeCell                        = Java.type("javafx.scene.control.cell.ComboBoxTreeCell");
    6.86 +ComboBoxTreeCellBuilder                 = Java.type("javafx.scene.control.cell.ComboBoxTreeCellBuilder");
    6.87 +MapValueFactory                         = Java.type("javafx.scene.control.cell.MapValueFactory");
    6.88 +ProgressBarTableCell                    = Java.type("javafx.scene.control.cell.ProgressBarTableCell");
    6.89 +PropertyValueFactory                    = Java.type("javafx.scene.control.cell.PropertyValueFactory");
    6.90 +PropertyValueFactoryBuilder             = Java.type("javafx.scene.control.cell.PropertyValueFactoryBuilder");
    6.91 +TextFieldListCell                       = Java.type("javafx.scene.control.cell.TextFieldListCell");
    6.92 +TextFieldListCellBuilder                = Java.type("javafx.scene.control.cell.TextFieldListCellBuilder");
    6.93 +TextFieldTableCell                      = Java.type("javafx.scene.control.cell.TextFieldTableCell");
    6.94 +TextFieldTableCellBuilder               = Java.type("javafx.scene.control.cell.TextFieldTableCellBuilder");
    6.95 +TextFieldTreeCell                       = Java.type("javafx.scene.control.cell.TextFieldTreeCell");
    6.96 +TextFieldTreeCellBuilder                = Java.type("javafx.scene.control.cell.TextFieldTreeCellBuilder");
    6.97 +CellBuilder                             = Java.type("javafx.scene.control.CellBuilder");
    6.98 +CheckBox                                = Java.type("javafx.scene.control.CheckBox");
    6.99 +CheckBoxBuilder                         = Java.type("javafx.scene.control.CheckBoxBuilder");
   6.100 +CheckBoxTreeItem                        = Java.type("javafx.scene.control.CheckBoxTreeItem");
   6.101 +CheckBoxTreeItem$TreeModificationEvent  = Java.type("javafx.scene.control.CheckBoxTreeItem$TreeModificationEvent");
   6.102 +CheckBoxTreeItemBuilder                 = Java.type("javafx.scene.control.CheckBoxTreeItemBuilder");
   6.103 +CheckMenuItem                           = Java.type("javafx.scene.control.CheckMenuItem");
   6.104 +CheckMenuItemBuilder                    = Java.type("javafx.scene.control.CheckMenuItemBuilder");
   6.105 +ChoiceBox                               = Java.type("javafx.scene.control.ChoiceBox");
   6.106 +ChoiceBoxBuilder                        = Java.type("javafx.scene.control.ChoiceBoxBuilder");
   6.107 +ColorPicker                             = Java.type("javafx.scene.control.ColorPicker");
   6.108 +ColorPickerBuilder                      = Java.type("javafx.scene.control.ColorPickerBuilder");
   6.109 +ComboBox                                = Java.type("javafx.scene.control.ComboBox");
   6.110 +ComboBoxBase                            = Java.type("javafx.scene.control.ComboBoxBase");
   6.111 +ComboBoxBaseBuilder                     = Java.type("javafx.scene.control.ComboBoxBaseBuilder");
   6.112 +ComboBoxBuilder                         = Java.type("javafx.scene.control.ComboBoxBuilder");
   6.113 +ContentDisplay                          = Java.type("javafx.scene.control.ContentDisplay");
   6.114 +ContextMenu                             = Java.type("javafx.scene.control.ContextMenu");
   6.115 +ContextMenuBuilder                      = Java.type("javafx.scene.control.ContextMenuBuilder");
   6.116 +Control                                 = Java.type("javafx.scene.control.Control");
   6.117 +ControlBuilder                          = Java.type("javafx.scene.control.ControlBuilder");
   6.118 +CustomMenuItem                          = Java.type("javafx.scene.control.CustomMenuItem");
   6.119 +CustomMenuItemBuilder                   = Java.type("javafx.scene.control.CustomMenuItemBuilder");
   6.120 +FocusModel                              = Java.type("javafx.scene.control.FocusModel");
   6.121 +Hyperlink                               = Java.type("javafx.scene.control.Hyperlink");
   6.122 +HyperlinkBuilder                        = Java.type("javafx.scene.control.HyperlinkBuilder");
   6.123 +IndexedCell                             = Java.type("javafx.scene.control.IndexedCell");
   6.124 +IndexedCellBuilder                      = Java.type("javafx.scene.control.IndexedCellBuilder");
   6.125 +IndexRange                              = Java.type("javafx.scene.control.IndexRange");
   6.126 +IndexRangeBuilder                       = Java.type("javafx.scene.control.IndexRangeBuilder");
   6.127 +Label                                   = Java.type("javafx.scene.control.Label");
   6.128 +LabelBuilder                            = Java.type("javafx.scene.control.LabelBuilder");
   6.129 +Labeled                                 = Java.type("javafx.scene.control.Labeled");
   6.130 +LabeledBuilder                          = Java.type("javafx.scene.control.LabeledBuilder");
   6.131 +ListCell                                = Java.type("javafx.scene.control.ListCell");
   6.132 +ListCellBuilder                         = Java.type("javafx.scene.control.ListCellBuilder");
   6.133 +ListView                                = Java.type("javafx.scene.control.ListView");
   6.134 +ListView$EditEvent                      = Java.type("javafx.scene.control.ListView$EditEvent");
   6.135 +ListViewBuilder                         = Java.type("javafx.scene.control.ListViewBuilder");
   6.136 +Menu                                    = Java.type("javafx.scene.control.Menu");
   6.137 +MenuBar                                 = Java.type("javafx.scene.control.MenuBar");
   6.138 +MenuBarBuilder                          = Java.type("javafx.scene.control.MenuBarBuilder");
   6.139 +MenuBuilder                             = Java.type("javafx.scene.control.MenuBuilder");
   6.140 +MenuButton                              = Java.type("javafx.scene.control.MenuButton");
   6.141 +MenuButtonBuilder                       = Java.type("javafx.scene.control.MenuButtonBuilder");
   6.142 +MenuItem                                = Java.type("javafx.scene.control.MenuItem");
   6.143 +MenuItemBuilder                         = Java.type("javafx.scene.control.MenuItemBuilder");
   6.144 +MultipleSelectionModel                  = Java.type("javafx.scene.control.MultipleSelectionModel");
   6.145 +MultipleSelectionModelBuilder           = Java.type("javafx.scene.control.MultipleSelectionModelBuilder");
   6.146 +OverrunStyle                            = Java.type("javafx.scene.control.OverrunStyle");
   6.147 +Pagination                              = Java.type("javafx.scene.control.Pagination");
   6.148 +PaginationBuilder                       = Java.type("javafx.scene.control.PaginationBuilder");
   6.149 +PasswordField                           = Java.type("javafx.scene.control.PasswordField");
   6.150 +PasswordFieldBuilder                    = Java.type("javafx.scene.control.PasswordFieldBuilder");
   6.151 +PopupControl                            = Java.type("javafx.scene.control.PopupControl");
   6.152 +PopupControlBuilder                     = Java.type("javafx.scene.control.PopupControlBuilder");
   6.153 +ProgressBar                             = Java.type("javafx.scene.control.ProgressBar");
   6.154 +ProgressBarBuilder                      = Java.type("javafx.scene.control.ProgressBarBuilder");
   6.155 +ProgressIndicator                       = Java.type("javafx.scene.control.ProgressIndicator");
   6.156 +ProgressIndicatorBuilder                = Java.type("javafx.scene.control.ProgressIndicatorBuilder");
   6.157 +RadioButton                             = Java.type("javafx.scene.control.RadioButton");
   6.158 +RadioButtonBuilder                      = Java.type("javafx.scene.control.RadioButtonBuilder");
   6.159 +RadioMenuItem                           = Java.type("javafx.scene.control.RadioMenuItem");
   6.160 +RadioMenuItemBuilder                    = Java.type("javafx.scene.control.RadioMenuItemBuilder");
   6.161 +ScrollBar                               = Java.type("javafx.scene.control.ScrollBar");
   6.162 +ScrollBarBuilder                        = Java.type("javafx.scene.control.ScrollBarBuilder");
   6.163 +ScrollPane                              = Java.type("javafx.scene.control.ScrollPane");
   6.164 +ScrollPane$ScrollBarPolicy              = Java.type("javafx.scene.control.ScrollPane$ScrollBarPolicy");
   6.165 +ScrollPaneBuilder                       = Java.type("javafx.scene.control.ScrollPaneBuilder");
   6.166 +SelectionMode                           = Java.type("javafx.scene.control.SelectionMode");
   6.167 +SelectionModel                          = Java.type("javafx.scene.control.SelectionModel");
   6.168 +Separator                               = Java.type("javafx.scene.control.Separator");
   6.169 +SeparatorBuilder                        = Java.type("javafx.scene.control.SeparatorBuilder");
   6.170 +SeparatorMenuItem                       = Java.type("javafx.scene.control.SeparatorMenuItem");
   6.171 +SeparatorMenuItemBuilder                = Java.type("javafx.scene.control.SeparatorMenuItemBuilder");
   6.172 +SingleSelectionModel                    = Java.type("javafx.scene.control.SingleSelectionModel");
   6.173 +Skin                                    = Java.type("javafx.scene.control.Skin");
   6.174 +Skinnable                               = Java.type("javafx.scene.control.Skinnable");
   6.175 +Slider                                  = Java.type("javafx.scene.control.Slider");
   6.176 +SliderBuilder                           = Java.type("javafx.scene.control.SliderBuilder");
   6.177 +SplitMenuButton                         = Java.type("javafx.scene.control.SplitMenuButton");
   6.178 +SplitMenuButtonBuilder                  = Java.type("javafx.scene.control.SplitMenuButtonBuilder");
   6.179 +SplitPane                               = Java.type("javafx.scene.control.SplitPane");
   6.180 +SplitPane$Divider                       = Java.type("javafx.scene.control.SplitPane$Divider");
   6.181 +SplitPaneBuilder                        = Java.type("javafx.scene.control.SplitPaneBuilder");
   6.182 +Tab                                     = Java.type("javafx.scene.control.Tab");
   6.183 +TabBuilder                              = Java.type("javafx.scene.control.TabBuilder");
   6.184 +TableCell                               = Java.type("javafx.scene.control.TableCell");
   6.185 +TableCellBuilder                        = Java.type("javafx.scene.control.TableCellBuilder");
   6.186 +TableColumn                             = Java.type("javafx.scene.control.TableColumn");
   6.187 +TableColumn$CellDataFeatures            = Java.type("javafx.scene.control.TableColumn$CellDataFeatures");
   6.188 +TableColumn$CellEditEvent               = Java.type("javafx.scene.control.TableColumn$CellEditEvent");
   6.189 +TableColumn$SortType                    = Java.type("javafx.scene.control.TableColumn$SortType");
   6.190 +TableColumnBuilder                      = Java.type("javafx.scene.control.TableColumnBuilder");
   6.191 +TablePosition                           = Java.type("javafx.scene.control.TablePosition");
   6.192 +//TablePositionBuilder                    = Java.type("javafx.scene.control.TablePositionBuilder");
   6.193 +TableRow                                = Java.type("javafx.scene.control.TableRow");
   6.194 +TableRowBuilder                         = Java.type("javafx.scene.control.TableRowBuilder");
   6.195 +TableView                               = Java.type("javafx.scene.control.TableView");
   6.196 +TableView$ResizeFeatures                = Java.type("javafx.scene.control.TableView$ResizeFeatures");
   6.197 +TableView$TableViewFocusModel           = Java.type("javafx.scene.control.TableView$TableViewFocusModel");
   6.198 +TableView$TableViewSelectionModel       = Java.type("javafx.scene.control.TableView$TableViewSelectionModel");
   6.199 +TableViewBuilder                        = Java.type("javafx.scene.control.TableViewBuilder");
   6.200 +TabPane                                 = Java.type("javafx.scene.control.TabPane");
   6.201 +TabPane$TabClosingPolicy                = Java.type("javafx.scene.control.TabPane$TabClosingPolicy");
   6.202 +TabPaneBuilder                          = Java.type("javafx.scene.control.TabPaneBuilder");
   6.203 +TextArea                                = Java.type("javafx.scene.control.TextArea");
   6.204 +TextAreaBuilder                         = Java.type("javafx.scene.control.TextAreaBuilder");
   6.205 +TextField                               = Java.type("javafx.scene.control.TextField");
   6.206 +TextFieldBuilder                        = Java.type("javafx.scene.control.TextFieldBuilder");
   6.207 +TextInputControl                        = Java.type("javafx.scene.control.TextInputControl");
   6.208 +TextInputControl$Content                = Java.type("javafx.scene.control.TextInputControl$Content");
   6.209 +TextInputControlBuilder                 = Java.type("javafx.scene.control.TextInputControlBuilder");
   6.210 +TitledPane                              = Java.type("javafx.scene.control.TitledPane");
   6.211 +TitledPaneBuilder                       = Java.type("javafx.scene.control.TitledPaneBuilder");
   6.212 +Toggle                                  = Java.type("javafx.scene.control.Toggle");
   6.213 +ToggleButton                            = Java.type("javafx.scene.control.ToggleButton");
   6.214 +ToggleButtonBuilder                     = Java.type("javafx.scene.control.ToggleButtonBuilder");
   6.215 +ToggleGroup                             = Java.type("javafx.scene.control.ToggleGroup");
   6.216 +ToggleGroupBuilder                      = Java.type("javafx.scene.control.ToggleGroupBuilder");
   6.217 +ToolBar                                 = Java.type("javafx.scene.control.ToolBar");
   6.218 +ToolBarBuilder                          = Java.type("javafx.scene.control.ToolBarBuilder");
   6.219 +Tooltip                                 = Java.type("javafx.scene.control.Tooltip");
   6.220 +TooltipBuilder                          = Java.type("javafx.scene.control.TooltipBuilder");
   6.221 +TreeCell                                = Java.type("javafx.scene.control.TreeCell");
   6.222 +TreeCellBuilder                         = Java.type("javafx.scene.control.TreeCellBuilder");
   6.223 +TreeItem                                = Java.type("javafx.scene.control.TreeItem");
   6.224 +TreeItem$TreeModificationEvent          = Java.type("javafx.scene.control.TreeItem$TreeModificationEvent");
   6.225 +TreeItemBuilder                         = Java.type("javafx.scene.control.TreeItemBuilder");
   6.226 +TreeView                                = Java.type("javafx.scene.control.TreeView");
   6.227 +TreeView$EditEvent                      = Java.type("javafx.scene.control.TreeView$EditEvent");
   6.228 +TreeViewBuilder                         = Java.type("javafx.scene.control.TreeViewBuilder");
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/fxml.js	Wed Apr 24 14:25:28 2013 -0300
     7.3 @@ -0,0 +1,30 @@
     7.4 +/*
     7.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     7.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     7.7 + *
     7.8 + * This code is free software; you can redistribute it and/or modify it
     7.9 + * under the terms of the GNU General Public License version 2 only, as
    7.10 + * published by the Free Software Foundation.  Oracle designates this
    7.11 + * particular file as subject to the "Classpath" exception as provided
    7.12 + * by Oracle in the LICENSE file that accompanied this code.
    7.13 + *
    7.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    7.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    7.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    7.17 + * version 2 for more details (a copy is included in the LICENSE file that
    7.18 + * accompanied this code).
    7.19 + *
    7.20 + * You should have received a copy of the GNU General Public License version
    7.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    7.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    7.23 + *
    7.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    7.25 + * or visit www.oracle.com if you need additional information or have any
    7.26 + * questions.
    7.27 + */
    7.28 +
    7.29 +FXML                                    = Java.type("javafx.fxml.FXML");
    7.30 +FXMLLoader                              = Java.type("javafx.fxml.FXMLLoader");
    7.31 +Initializable                           = Java.type("javafx.fxml.Initializable");
    7.32 +JavaFXBuilderFactory                    = Java.type("javafx.fxml.JavaFXBuilderFactory");
    7.33 +LoadException                           = Java.type("javafx.fxml.LoadException");
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/graphics.js	Wed Apr 24 14:25:28 2013 -0300
     8.3 @@ -0,0 +1,327 @@
     8.4 +/*
     8.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     8.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     8.7 + *
     8.8 + * This code is free software; you can redistribute it and/or modify it
     8.9 + * under the terms of the GNU General Public License version 2 only, as
    8.10 + * published by the Free Software Foundation.  Oracle designates this
    8.11 + * particular file as subject to the "Classpath" exception as provided
    8.12 + * by Oracle in the LICENSE file that accompanied this code.
    8.13 + *
    8.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    8.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    8.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    8.17 + * version 2 for more details (a copy is included in the LICENSE file that
    8.18 + * accompanied this code).
    8.19 + *
    8.20 + * You should have received a copy of the GNU General Public License version
    8.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    8.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    8.23 + *
    8.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    8.25 + * or visit www.oracle.com if you need additional information or have any
    8.26 + * questions.
    8.27 + */
    8.28 +
    8.29 +Animation                               = Java.type("javafx.animation.Animation");
    8.30 +Animation$Status                        = Java.type("javafx.animation.Animation$Status");
    8.31 +AnimationBuilder                        = Java.type("javafx.animation.AnimationBuilder");
    8.32 +AnimationTimer                          = Java.type("javafx.animation.AnimationTimer");
    8.33 +FadeTransition                          = Java.type("javafx.animation.FadeTransition");
    8.34 +FadeTransitionBuilder                   = Java.type("javafx.animation.FadeTransitionBuilder");
    8.35 +FillTransition                          = Java.type("javafx.animation.FillTransition");
    8.36 +FillTransitionBuilder                   = Java.type("javafx.animation.FillTransitionBuilder");
    8.37 +Interpolatable                          = Java.type("javafx.animation.Interpolatable");
    8.38 +Interpolator                            = Java.type("javafx.animation.Interpolator");
    8.39 +KeyFrame                                = Java.type("javafx.animation.KeyFrame");
    8.40 +KeyValue                                = Java.type("javafx.animation.KeyValue");
    8.41 +ParallelTransition                      = Java.type("javafx.animation.ParallelTransition");
    8.42 +ParallelTransitionBuilder               = Java.type("javafx.animation.ParallelTransitionBuilder");
    8.43 +PathTransition                          = Java.type("javafx.animation.PathTransition");
    8.44 +PathTransition$OrientationType          = Java.type("javafx.animation.PathTransition$OrientationType");
    8.45 +PathTransitionBuilder                   = Java.type("javafx.animation.PathTransitionBuilder");
    8.46 +PauseTransition                         = Java.type("javafx.animation.PauseTransition");
    8.47 +PauseTransitionBuilder                  = Java.type("javafx.animation.PauseTransitionBuilder");
    8.48 +RotateTransition                        = Java.type("javafx.animation.RotateTransition");
    8.49 +RotateTransitionBuilder                 = Java.type("javafx.animation.RotateTransitionBuilder");
    8.50 +ScaleTransition                         = Java.type("javafx.animation.ScaleTransition");
    8.51 +ScaleTransitionBuilder                  = Java.type("javafx.animation.ScaleTransitionBuilder");
    8.52 +SequentialTransition                    = Java.type("javafx.animation.SequentialTransition");
    8.53 +SequentialTransitionBuilder             = Java.type("javafx.animation.SequentialTransitionBuilder");
    8.54 +StrokeTransition                        = Java.type("javafx.animation.StrokeTransition");
    8.55 +StrokeTransitionBuilder                 = Java.type("javafx.animation.StrokeTransitionBuilder");
    8.56 +Timeline                                = Java.type("javafx.animation.Timeline");
    8.57 +TimelineBuilder                         = Java.type("javafx.animation.TimelineBuilder");
    8.58 +Transition                              = Java.type("javafx.animation.Transition");
    8.59 +TransitionBuilder                       = Java.type("javafx.animation.TransitionBuilder");
    8.60 +TranslateTransition                     = Java.type("javafx.animation.TranslateTransition");
    8.61 +TranslateTransitionBuilder              = Java.type("javafx.animation.TranslateTransitionBuilder");
    8.62 +Application                             = Java.type("javafx.application.Application");
    8.63 +Application$Parameters                  = Java.type("javafx.application.Application$Parameters");
    8.64 +ConditionalFeature                      = Java.type("javafx.application.ConditionalFeature");
    8.65 +HostServices                            = Java.type("javafx.application.HostServices");
    8.66 +Platform                                = Java.type("javafx.application.Platform");
    8.67 +Preloader                               = Java.type("javafx.application.Preloader");
    8.68 +Preloader$ErrorNotification             = Java.type("javafx.application.Preloader$ErrorNotification");
    8.69 +Preloader$PreloaderNotification         = Java.type("javafx.application.Preloader$PreloaderNotification");
    8.70 +Preloader$ProgressNotification          = Java.type("javafx.application.Preloader$ProgressNotification");
    8.71 +Preloader$StateChangeNotification       = Java.type("javafx.application.Preloader$StateChangeNotification");
    8.72 +Preloader$StateChangeNotification$Type  = Java.type("javafx.application.Preloader$StateChangeNotification$Type");
    8.73 +Service                                 = Java.type("javafx.concurrent.Service");
    8.74 +Task                                    = Java.type("javafx.concurrent.Task");
    8.75 +Worker                                  = Java.type("javafx.concurrent.Worker");
    8.76 +Worker$State                            = Java.type("javafx.concurrent.Worker$State");
    8.77 +WorkerStateEvent                        = Java.type("javafx.concurrent.WorkerStateEvent");
    8.78 +BoundingBox                             = Java.type("javafx.geometry.BoundingBox");
    8.79 +BoundingBoxBuilder                      = Java.type("javafx.geometry.BoundingBoxBuilder");
    8.80 +Bounds                                  = Java.type("javafx.geometry.Bounds");
    8.81 +Dimension2D                             = Java.type("javafx.geometry.Dimension2D");
    8.82 +Dimension2DBuilder                      = Java.type("javafx.geometry.Dimension2DBuilder");
    8.83 +HorizontalDirection                     = Java.type("javafx.geometry.HorizontalDirection");
    8.84 +HPos                                    = Java.type("javafx.geometry.HPos");
    8.85 +Insets                                  = Java.type("javafx.geometry.Insets");
    8.86 +InsetsBuilder                           = Java.type("javafx.geometry.InsetsBuilder");
    8.87 +Orientation                             = Java.type("javafx.geometry.Orientation");
    8.88 +Point2D                                 = Java.type("javafx.geometry.Point2D");
    8.89 +Point2DBuilder                          = Java.type("javafx.geometry.Point2DBuilder");
    8.90 +Point3D                                 = Java.type("javafx.geometry.Point3D");
    8.91 +Point3DBuilder                          = Java.type("javafx.geometry.Point3DBuilder");
    8.92 +Pos                                     = Java.type("javafx.geometry.Pos");
    8.93 +Rectangle2D                             = Java.type("javafx.geometry.Rectangle2D");
    8.94 +Rectangle2DBuilder                      = Java.type("javafx.geometry.Rectangle2DBuilder");
    8.95 +Side                                    = Java.type("javafx.geometry.Side");
    8.96 +VerticalDirection                       = Java.type("javafx.geometry.VerticalDirection");
    8.97 +VPos                                    = Java.type("javafx.geometry.VPos");
    8.98 +CacheHint                               = Java.type("javafx.scene.CacheHint");
    8.99 +Camera                                  = Java.type("javafx.scene.Camera");
   8.100 +Canvas                                  = Java.type("javafx.scene.canvas.Canvas");
   8.101 +CanvasBuilder                           = Java.type("javafx.scene.canvas.CanvasBuilder");
   8.102 +GraphicsContext                         = Java.type("javafx.scene.canvas.GraphicsContext");
   8.103 +Cursor                                  = Java.type("javafx.scene.Cursor");
   8.104 +DepthTest                               = Java.type("javafx.scene.DepthTest");
   8.105 +Blend                                   = Java.type("javafx.scene.effect.Blend");
   8.106 +BlendBuilder                            = Java.type("javafx.scene.effect.BlendBuilder");
   8.107 +BlendMode                               = Java.type("javafx.scene.effect.BlendMode");
   8.108 +Bloom                                   = Java.type("javafx.scene.effect.Bloom");
   8.109 +BloomBuilder                            = Java.type("javafx.scene.effect.BloomBuilder");
   8.110 +BlurType                                = Java.type("javafx.scene.effect.BlurType");
   8.111 +BoxBlur                                 = Java.type("javafx.scene.effect.BoxBlur");
   8.112 +BoxBlurBuilder                          = Java.type("javafx.scene.effect.BoxBlurBuilder");
   8.113 +ColorAdjust                             = Java.type("javafx.scene.effect.ColorAdjust");
   8.114 +ColorAdjustBuilder                      = Java.type("javafx.scene.effect.ColorAdjustBuilder");
   8.115 +ColorInput                              = Java.type("javafx.scene.effect.ColorInput");
   8.116 +ColorInputBuilder                       = Java.type("javafx.scene.effect.ColorInputBuilder");
   8.117 +DisplacementMap                         = Java.type("javafx.scene.effect.DisplacementMap");
   8.118 +DisplacementMapBuilder                  = Java.type("javafx.scene.effect.DisplacementMapBuilder");
   8.119 +DropShadow                              = Java.type("javafx.scene.effect.DropShadow");
   8.120 +DropShadowBuilder                       = Java.type("javafx.scene.effect.DropShadowBuilder");
   8.121 +Effect                                  = Java.type("javafx.scene.effect.Effect");
   8.122 +FloatMap                                = Java.type("javafx.scene.effect.FloatMap");
   8.123 +FloatMapBuilder                         = Java.type("javafx.scene.effect.FloatMapBuilder");
   8.124 +GaussianBlur                            = Java.type("javafx.scene.effect.GaussianBlur");
   8.125 +GaussianBlurBuilder                     = Java.type("javafx.scene.effect.GaussianBlurBuilder");
   8.126 +Glow                                    = Java.type("javafx.scene.effect.Glow");
   8.127 +GlowBuilder                             = Java.type("javafx.scene.effect.GlowBuilder");
   8.128 +ImageInput                              = Java.type("javafx.scene.effect.ImageInput");
   8.129 +ImageInputBuilder                       = Java.type("javafx.scene.effect.ImageInputBuilder");
   8.130 +InnerShadow                             = Java.type("javafx.scene.effect.InnerShadow");
   8.131 +InnerShadowBuilder                      = Java.type("javafx.scene.effect.InnerShadowBuilder");
   8.132 +Light                                   = Java.type("javafx.scene.effect.Light");
   8.133 +Light$Distant                           = Java.type("javafx.scene.effect.Light$Distant");
   8.134 +Light$Point                             = Java.type("javafx.scene.effect.Light$Point");
   8.135 +Light$Spot                              = Java.type("javafx.scene.effect.Light$Spot");
   8.136 +LightBuilder                            = Java.type("javafx.scene.effect.LightBuilder");
   8.137 +Lighting                                = Java.type("javafx.scene.effect.Lighting");
   8.138 +LightingBuilder                         = Java.type("javafx.scene.effect.LightingBuilder");
   8.139 +MotionBlur                              = Java.type("javafx.scene.effect.MotionBlur");
   8.140 +MotionBlurBuilder                       = Java.type("javafx.scene.effect.MotionBlurBuilder");
   8.141 +PerspectiveTransform                    = Java.type("javafx.scene.effect.PerspectiveTransform");
   8.142 +PerspectiveTransformBuilder             = Java.type("javafx.scene.effect.PerspectiveTransformBuilder");
   8.143 +Reflection                              = Java.type("javafx.scene.effect.Reflection");
   8.144 +ReflectionBuilder                       = Java.type("javafx.scene.effect.ReflectionBuilder");
   8.145 +SepiaTone                               = Java.type("javafx.scene.effect.SepiaTone");
   8.146 +SepiaToneBuilder                        = Java.type("javafx.scene.effect.SepiaToneBuilder");
   8.147 +Shadow                                  = Java.type("javafx.scene.effect.Shadow");
   8.148 +ShadowBuilder                           = Java.type("javafx.scene.effect.ShadowBuilder");
   8.149 +GroupBuilder                            = Java.type("javafx.scene.GroupBuilder");
   8.150 +Image                                   = Java.type("javafx.scene.image.Image");
   8.151 +ImageView                               = Java.type("javafx.scene.image.ImageView");
   8.152 +ImageViewBuilder                        = Java.type("javafx.scene.image.ImageViewBuilder");
   8.153 +PixelFormat                             = Java.type("javafx.scene.image.PixelFormat");
   8.154 +PixelFormat$Type                        = Java.type("javafx.scene.image.PixelFormat$Type");
   8.155 +PixelReader                             = Java.type("javafx.scene.image.PixelReader");
   8.156 +PixelWriter                             = Java.type("javafx.scene.image.PixelWriter");
   8.157 +WritableImage                           = Java.type("javafx.scene.image.WritableImage");
   8.158 +WritablePixelFormat                     = Java.type("javafx.scene.image.WritablePixelFormat");
   8.159 +ImageCursor                             = Java.type("javafx.scene.ImageCursor");
   8.160 +ImageCursorBuilder                      = Java.type("javafx.scene.ImageCursorBuilder");
   8.161 +Clipboard                               = Java.type("javafx.scene.input.Clipboard");
   8.162 +ClipboardContent                        = Java.type("javafx.scene.input.ClipboardContent");
   8.163 +ClipboardContentBuilder                 = Java.type("javafx.scene.input.ClipboardContentBuilder");
   8.164 +ContextMenuEvent                        = Java.type("javafx.scene.input.ContextMenuEvent");
   8.165 +DataFormat                              = Java.type("javafx.scene.input.DataFormat");
   8.166 +Dragboard                               = Java.type("javafx.scene.input.Dragboard");
   8.167 +DragEvent                               = Java.type("javafx.scene.input.DragEvent");
   8.168 +GestureEvent                            = Java.type("javafx.scene.input.GestureEvent");
   8.169 +InputEvent                              = Java.type("javafx.scene.input.InputEvent");
   8.170 +InputMethodEvent                        = Java.type("javafx.scene.input.InputMethodEvent");
   8.171 +InputMethodHighlight                    = Java.type("javafx.scene.input.InputMethodHighlight");
   8.172 +InputMethodRequests                     = Java.type("javafx.scene.input.InputMethodRequests");
   8.173 +InputMethodTextRun                      = Java.type("javafx.scene.input.InputMethodTextRun");
   8.174 +KeyCharacterCombination                 = Java.type("javafx.scene.input.KeyCharacterCombination");
   8.175 +KeyCharacterCombinationBuilder          = Java.type("javafx.scene.input.KeyCharacterCombinationBuilder");
   8.176 +KeyCode                                 = Java.type("javafx.scene.input.KeyCode");
   8.177 +KeyCodeCombination                      = Java.type("javafx.scene.input.KeyCodeCombination");
   8.178 +KeyCodeCombinationBuilder               = Java.type("javafx.scene.input.KeyCodeCombinationBuilder");
   8.179 +KeyCombination                          = Java.type("javafx.scene.input.KeyCombination");
   8.180 +KeyCombination$Modifier                 = Java.type("javafx.scene.input.KeyCombination$Modifier");
   8.181 +KeyCombination$ModifierValue            = Java.type("javafx.scene.input.KeyCombination$ModifierValue");
   8.182 +KeyEvent                                = Java.type("javafx.scene.input.KeyEvent");
   8.183 +Mnemonic                                = Java.type("javafx.scene.input.Mnemonic");
   8.184 +MnemonicBuilder                         = Java.type("javafx.scene.input.MnemonicBuilder");
   8.185 +MouseButton                             = Java.type("javafx.scene.input.MouseButton");
   8.186 +MouseDragEvent                          = Java.type("javafx.scene.input.MouseDragEvent");
   8.187 +MouseEvent                              = Java.type("javafx.scene.input.MouseEvent");
   8.188 +RotateEvent                             = Java.type("javafx.scene.input.RotateEvent");
   8.189 +ScrollEvent                             = Java.type("javafx.scene.input.ScrollEvent");
   8.190 +ScrollEvent$HorizontalTextScrollUnits   = Java.type("javafx.scene.input.ScrollEvent$HorizontalTextScrollUnits");
   8.191 +ScrollEvent$VerticalTextScrollUnits     = Java.type("javafx.scene.input.ScrollEvent$VerticalTextScrollUnits");
   8.192 +SwipeEvent                              = Java.type("javafx.scene.input.SwipeEvent");
   8.193 +TouchEvent                              = Java.type("javafx.scene.input.TouchEvent");
   8.194 +TouchPoint                              = Java.type("javafx.scene.input.TouchPoint");
   8.195 +TouchPoint$State                        = Java.type("javafx.scene.input.TouchPoint$State");
   8.196 +TransferMode                            = Java.type("javafx.scene.input.TransferMode");
   8.197 +ZoomEvent                               = Java.type("javafx.scene.input.ZoomEvent");
   8.198 +AnchorPane                              = Java.type("javafx.scene.layout.AnchorPane");
   8.199 +AnchorPaneBuilder                       = Java.type("javafx.scene.layout.AnchorPaneBuilder");
   8.200 +BorderPane                              = Java.type("javafx.scene.layout.BorderPane");
   8.201 +BorderPaneBuilder                       = Java.type("javafx.scene.layout.BorderPaneBuilder");
   8.202 +ColumnConstraints                       = Java.type("javafx.scene.layout.ColumnConstraints");
   8.203 +ColumnConstraintsBuilder                = Java.type("javafx.scene.layout.ColumnConstraintsBuilder");
   8.204 +ConstraintsBase                         = Java.type("javafx.scene.layout.ConstraintsBase");
   8.205 +FlowPane                                = Java.type("javafx.scene.layout.FlowPane");
   8.206 +FlowPaneBuilder                         = Java.type("javafx.scene.layout.FlowPaneBuilder");
   8.207 +GridPane                                = Java.type("javafx.scene.layout.GridPane");
   8.208 +GridPaneBuilder                         = Java.type("javafx.scene.layout.GridPaneBuilder");
   8.209 +HBox                                    = Java.type("javafx.scene.layout.HBox");
   8.210 +HBoxBuilder                             = Java.type("javafx.scene.layout.HBoxBuilder");
   8.211 +Pane                                    = Java.type("javafx.scene.layout.Pane");
   8.212 +PaneBuilder                             = Java.type("javafx.scene.layout.PaneBuilder");
   8.213 +Priority                                = Java.type("javafx.scene.layout.Priority");
   8.214 +Region                                  = Java.type("javafx.scene.layout.Region");
   8.215 +RegionBuilder                           = Java.type("javafx.scene.layout.RegionBuilder");
   8.216 +RowConstraints                          = Java.type("javafx.scene.layout.RowConstraints");
   8.217 +RowConstraintsBuilder                   = Java.type("javafx.scene.layout.RowConstraintsBuilder");
   8.218 +StackPane                               = Java.type("javafx.scene.layout.StackPane");
   8.219 +StackPaneBuilder                        = Java.type("javafx.scene.layout.StackPaneBuilder");
   8.220 +TilePane                                = Java.type("javafx.scene.layout.TilePane");
   8.221 +TilePaneBuilder                         = Java.type("javafx.scene.layout.TilePaneBuilder");
   8.222 +VBox                                    = Java.type("javafx.scene.layout.VBox");
   8.223 +VBoxBuilder                             = Java.type("javafx.scene.layout.VBoxBuilder");
   8.224 +Node                                    = Java.type("javafx.scene.Node");
   8.225 +NodeBuilder                             = Java.type("javafx.scene.NodeBuilder");
   8.226 +Color                                   = Java.type("javafx.scene.paint.Color");
   8.227 +ColorBuilder                            = Java.type("javafx.scene.paint.ColorBuilder");
   8.228 +CycleMethod                             = Java.type("javafx.scene.paint.CycleMethod");
   8.229 +ImagePattern                            = Java.type("javafx.scene.paint.ImagePattern");
   8.230 +ImagePatternBuilder                     = Java.type("javafx.scene.paint.ImagePatternBuilder");
   8.231 +LinearGradient                          = Java.type("javafx.scene.paint.LinearGradient");
   8.232 +LinearGradientBuilder                   = Java.type("javafx.scene.paint.LinearGradientBuilder");
   8.233 +Paint                                   = Java.type("javafx.scene.paint.Paint");
   8.234 +RadialGradient                          = Java.type("javafx.scene.paint.RadialGradient");
   8.235 +RadialGradientBuilder                   = Java.type("javafx.scene.paint.RadialGradientBuilder");
   8.236 +Stop                                    = Java.type("javafx.scene.paint.Stop");
   8.237 +StopBuilder                             = Java.type("javafx.scene.paint.StopBuilder");
   8.238 +ParallelCamera                          = Java.type("javafx.scene.ParallelCamera");
   8.239 +Parent                                  = Java.type("javafx.scene.Parent");
   8.240 +ParentBuilder                           = Java.type("javafx.scene.ParentBuilder");
   8.241 +PerspectiveCamera                       = Java.type("javafx.scene.PerspectiveCamera");
   8.242 +PerspectiveCameraBuilder                = Java.type("javafx.scene.PerspectiveCameraBuilder");
   8.243 +//SceneAccessor                           = Java.type("javafx.scene.SceneAccessor");
   8.244 +SceneBuilder                            = Java.type("javafx.scene.SceneBuilder");
   8.245 +Arc                                     = Java.type("javafx.scene.shape.Arc");
   8.246 +ArcBuilder                              = Java.type("javafx.scene.shape.ArcBuilder");
   8.247 +ArcTo                                   = Java.type("javafx.scene.shape.ArcTo");
   8.248 +ArcToBuilder                            = Java.type("javafx.scene.shape.ArcToBuilder");
   8.249 +ArcType                                 = Java.type("javafx.scene.shape.ArcType");
   8.250 +Circle                                  = Java.type("javafx.scene.shape.Circle");
   8.251 +CircleBuilder                           = Java.type("javafx.scene.shape.CircleBuilder");
   8.252 +ClosePath                               = Java.type("javafx.scene.shape.ClosePath");
   8.253 +ClosePathBuilder                        = Java.type("javafx.scene.shape.ClosePathBuilder");
   8.254 +CubicCurve                              = Java.type("javafx.scene.shape.CubicCurve");
   8.255 +CubicCurveBuilder                       = Java.type("javafx.scene.shape.CubicCurveBuilder");
   8.256 +CubicCurveTo                            = Java.type("javafx.scene.shape.CubicCurveTo");
   8.257 +CubicCurveToBuilder                     = Java.type("javafx.scene.shape.CubicCurveToBuilder");
   8.258 +Ellipse                                 = Java.type("javafx.scene.shape.Ellipse");
   8.259 +EllipseBuilder                          = Java.type("javafx.scene.shape.EllipseBuilder");
   8.260 +FillRule                                = Java.type("javafx.scene.shape.FillRule");
   8.261 +HLineTo                                 = Java.type("javafx.scene.shape.HLineTo");
   8.262 +HLineToBuilder                          = Java.type("javafx.scene.shape.HLineToBuilder");
   8.263 +Line                                    = Java.type("javafx.scene.shape.Line");
   8.264 +LineBuilder                             = Java.type("javafx.scene.shape.LineBuilder");
   8.265 +LineTo                                  = Java.type("javafx.scene.shape.LineTo");
   8.266 +LineToBuilder                           = Java.type("javafx.scene.shape.LineToBuilder");
   8.267 +MoveTo                                  = Java.type("javafx.scene.shape.MoveTo");
   8.268 +MoveToBuilder                           = Java.type("javafx.scene.shape.MoveToBuilder");
   8.269 +Path                                    = Java.type("javafx.scene.shape.Path");
   8.270 +PathBuilder                             = Java.type("javafx.scene.shape.PathBuilder");
   8.271 +PathElement                             = Java.type("javafx.scene.shape.PathElement");
   8.272 +PathElementBuilder                      = Java.type("javafx.scene.shape.PathElementBuilder");
   8.273 +Polygon                                 = Java.type("javafx.scene.shape.Polygon");
   8.274 +PolygonBuilder                          = Java.type("javafx.scene.shape.PolygonBuilder");
   8.275 +Polyline                                = Java.type("javafx.scene.shape.Polyline");
   8.276 +PolylineBuilder                         = Java.type("javafx.scene.shape.PolylineBuilder");
   8.277 +QuadCurve                               = Java.type("javafx.scene.shape.QuadCurve");
   8.278 +QuadCurveBuilder                        = Java.type("javafx.scene.shape.QuadCurveBuilder");
   8.279 +QuadCurveTo                             = Java.type("javafx.scene.shape.QuadCurveTo");
   8.280 +QuadCurveToBuilder                      = Java.type("javafx.scene.shape.QuadCurveToBuilder");
   8.281 +Rectangle                               = Java.type("javafx.scene.shape.Rectangle");
   8.282 +RectangleBuilder                        = Java.type("javafx.scene.shape.RectangleBuilder");
   8.283 +Shape                                   = Java.type("javafx.scene.shape.Shape");
   8.284 +ShapeBuilder                            = Java.type("javafx.scene.shape.ShapeBuilder");
   8.285 +StrokeLineCap                           = Java.type("javafx.scene.shape.StrokeLineCap");
   8.286 +StrokeLineJoin                          = Java.type("javafx.scene.shape.StrokeLineJoin");
   8.287 +StrokeType                              = Java.type("javafx.scene.shape.StrokeType");
   8.288 +SVGPath                                 = Java.type("javafx.scene.shape.SVGPath");
   8.289 +SVGPathBuilder                          = Java.type("javafx.scene.shape.SVGPathBuilder");
   8.290 +VLineTo                                 = Java.type("javafx.scene.shape.VLineTo");
   8.291 +VLineToBuilder                          = Java.type("javafx.scene.shape.VLineToBuilder");
   8.292 +SnapshotParameters                      = Java.type("javafx.scene.SnapshotParameters");
   8.293 +SnapshotParametersBuilder               = Java.type("javafx.scene.SnapshotParametersBuilder");
   8.294 +SnapshotResult                          = Java.type("javafx.scene.SnapshotResult");
   8.295 +Font                                    = Java.type("javafx.scene.text.Font");
   8.296 +FontBuilder                             = Java.type("javafx.scene.text.FontBuilder");
   8.297 +FontPosture                             = Java.type("javafx.scene.text.FontPosture");
   8.298 +FontSmoothingType                       = Java.type("javafx.scene.text.FontSmoothingType");
   8.299 +FontWeight                              = Java.type("javafx.scene.text.FontWeight");
   8.300 +Text                                    = Java.type("javafx.scene.text.Text");
   8.301 +TextAlignment                           = Java.type("javafx.scene.text.TextAlignment");
   8.302 +TextBoundsType                          = Java.type("javafx.scene.text.TextBoundsType");
   8.303 +TextBuilder                             = Java.type("javafx.scene.text.TextBuilder");
   8.304 +Affine                                  = Java.type("javafx.scene.transform.Affine");
   8.305 +AffineBuilder                           = Java.type("javafx.scene.transform.AffineBuilder");
   8.306 +Rotate                                  = Java.type("javafx.scene.transform.Rotate");
   8.307 +RotateBuilder                           = Java.type("javafx.scene.transform.RotateBuilder");
   8.308 +Scale                                   = Java.type("javafx.scene.transform.Scale");
   8.309 +ScaleBuilder                            = Java.type("javafx.scene.transform.ScaleBuilder");
   8.310 +Shear                                   = Java.type("javafx.scene.transform.Shear");
   8.311 +ShearBuilder                            = Java.type("javafx.scene.transform.ShearBuilder");
   8.312 +Transform                               = Java.type("javafx.scene.transform.Transform");
   8.313 +Translate                               = Java.type("javafx.scene.transform.Translate");
   8.314 +TranslateBuilder                        = Java.type("javafx.scene.transform.TranslateBuilder");
   8.315 +DirectoryChooser                        = Java.type("javafx.stage.DirectoryChooser");
   8.316 +DirectoryChooserBuilder                 = Java.type("javafx.stage.DirectoryChooserBuilder");
   8.317 +FileChooser                             = Java.type("javafx.stage.FileChooser");
   8.318 +FileChooser$ExtensionFilter             = Java.type("javafx.stage.FileChooser$ExtensionFilter");
   8.319 +FileChooserBuilder                      = Java.type("javafx.stage.FileChooserBuilder");
   8.320 +Modality                                = Java.type("javafx.stage.Modality");
   8.321 +Popup                                   = Java.type("javafx.stage.Popup");
   8.322 +PopupBuilder                            = Java.type("javafx.stage.PopupBuilder");
   8.323 +PopupWindow                             = Java.type("javafx.stage.PopupWindow");
   8.324 +PopupWindowBuilder                      = Java.type("javafx.stage.PopupWindowBuilder");
   8.325 +Stage                                   = Java.type("javafx.stage.Stage");
   8.326 +StageBuilder                            = Java.type("javafx.stage.StageBuilder");
   8.327 +StageStyle                              = Java.type("javafx.stage.StageStyle");
   8.328 +Window                                  = Java.type("javafx.stage.Window");
   8.329 +WindowBuilder                           = Java.type("javafx.stage.WindowBuilder");
   8.330 +WindowEvent                             = Java.type("javafx.stage.WindowEvent");
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/media.js	Wed Apr 24 14:25:28 2013 -0300
     9.3 @@ -0,0 +1,44 @@
     9.4 +/*
     9.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     9.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     9.7 + *
     9.8 + * This code is free software; you can redistribute it and/or modify it
     9.9 + * under the terms of the GNU General Public License version 2 only, as
    9.10 + * published by the Free Software Foundation.  Oracle designates this
    9.11 + * particular file as subject to the "Classpath" exception as provided
    9.12 + * by Oracle in the LICENSE file that accompanied this code.
    9.13 + *
    9.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    9.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    9.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    9.17 + * version 2 for more details (a copy is included in the LICENSE file that
    9.18 + * accompanied this code).
    9.19 + *
    9.20 + * You should have received a copy of the GNU General Public License version
    9.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    9.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    9.23 + *
    9.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    9.25 + * or visit www.oracle.com if you need additional information or have any
    9.26 + * questions.
    9.27 + */
    9.28 +
    9.29 +AudioClip                               = Java.type("javafx.scene.media.AudioClip");
    9.30 +AudioClipBuilder                        = Java.type("javafx.scene.media.AudioClipBuilder");
    9.31 +AudioEqualizer                          = Java.type("javafx.scene.media.AudioEqualizer");
    9.32 +AudioSpectrumListener                   = Java.type("javafx.scene.media.AudioSpectrumListener");
    9.33 +AudioTrack                              = Java.type("javafx.scene.media.AudioTrack");
    9.34 +EqualizerBand                           = Java.type("javafx.scene.media.EqualizerBand");
    9.35 +Media                                   = Java.type("javafx.scene.media.Media");
    9.36 +MediaBuilder                            = Java.type("javafx.scene.media.MediaBuilder");
    9.37 +MediaErrorEvent                         = Java.type("javafx.scene.media.MediaErrorEvent");
    9.38 +MediaException                          = Java.type("javafx.scene.media.MediaException");
    9.39 +MediaException$Type                     = Java.type("javafx.scene.media.MediaException$Type");
    9.40 +MediaMarkerEvent                        = Java.type("javafx.scene.media.MediaMarkerEvent");
    9.41 +MediaPlayer                             = Java.type("javafx.scene.media.MediaPlayer");
    9.42 +MediaPlayer$Status                      = Java.type("javafx.scene.media.MediaPlayer$Status");
    9.43 +MediaPlayerBuilder                      = Java.type("javafx.scene.media.MediaPlayerBuilder");
    9.44 +MediaView                               = Java.type("javafx.scene.media.MediaView");
    9.45 +MediaViewBuilder                        = Java.type("javafx.scene.media.MediaViewBuilder");
    9.46 +Track                                   = Java.type("javafx.scene.media.Track");
    9.47 +VideoTrack                              = Java.type("javafx.scene.media.VideoTrack");
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/swing.js	Wed Apr 24 14:25:28 2013 -0300
    10.3 @@ -0,0 +1,28 @@
    10.4 +/*
    10.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
    10.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    10.7 + *
    10.8 + * This code is free software; you can redistribute it and/or modify it
    10.9 + * under the terms of the GNU General Public License version 2 only, as
   10.10 + * published by the Free Software Foundation.  Oracle designates this
   10.11 + * particular file as subject to the "Classpath" exception as provided
   10.12 + * by Oracle in the LICENSE file that accompanied this code.
   10.13 + *
   10.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
   10.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   10.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   10.17 + * version 2 for more details (a copy is included in the LICENSE file that
   10.18 + * accompanied this code).
   10.19 + *
   10.20 + * You should have received a copy of the GNU General Public License version
   10.21 + * 2 along with this work; if not, write to the Free Software Foundation,
   10.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   10.23 + *
   10.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
   10.25 + * or visit www.oracle.com if you need additional information or have any
   10.26 + * questions.
   10.27 + */
   10.28 +
   10.29 +JFXPanel                                = Java.type("javafx.embed.swing.JFXPanel");
   10.30 +JFXPanelBuilder                         = Java.type("javafx.embed.swing.JFXPanelBuilder");
   10.31 +SwingFXUtils                            = Java.type("javafx.embed.swing.SwingFXUtils");
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/swt.js	Wed Apr 24 14:25:28 2013 -0300
    11.3 @@ -0,0 +1,29 @@
    11.4 +/*
    11.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
    11.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    11.7 + *
    11.8 + * This code is free software; you can redistribute it and/or modify it
    11.9 + * under the terms of the GNU General Public License version 2 only, as
   11.10 + * published by the Free Software Foundation.  Oracle designates this
   11.11 + * particular file as subject to the "Classpath" exception as provided
   11.12 + * by Oracle in the LICENSE file that accompanied this code.
   11.13 + *
   11.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
   11.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   11.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   11.17 + * version 2 for more details (a copy is included in the LICENSE file that
   11.18 + * accompanied this code).
   11.19 + *
   11.20 + * You should have received a copy of the GNU General Public License version
   11.21 + * 2 along with this work; if not, write to the Free Software Foundation,
   11.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   11.23 + *
   11.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
   11.25 + * or visit www.oracle.com if you need additional information or have any
   11.26 + * questions.
   11.27 + */
   11.28 +
   11.29 +CustomTransfer                          = Java.type("javafx.embed.swt.CustomTransfer");
   11.30 +CustomTransferBuilder                   = Java.type("javafx.embed.swt.CustomTransferBuilder");
   11.31 +FXCanvas                                = Java.type("javafx.embed.swt.FXCanvas");
   11.32 +SWTFXUtils                              = Java.type("javafx.embed.swt.SWTFXUtils");
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/src/jdk/nashorn/internal/runtime/resources/fx/web.js	Wed Apr 24 14:25:28 2013 -0300
    12.3 @@ -0,0 +1,36 @@
    12.4 +/*
    12.5 + * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
    12.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    12.7 + *
    12.8 + * This code is free software; you can redistribute it and/or modify it
    12.9 + * under the terms of the GNU General Public License version 2 only, as
   12.10 + * published by the Free Software Foundation.  Oracle designates this
   12.11 + * particular file as subject to the "Classpath" exception as provided
   12.12 + * by Oracle in the LICENSE file that accompanied this code.
   12.13 + *
   12.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
   12.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   12.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   12.17 + * version 2 for more details (a copy is included in the LICENSE file that
   12.18 + * accompanied this code).
   12.19 + *
   12.20 + * You should have received a copy of the GNU General Public License version
   12.21 + * 2 along with this work; if not, write to the Free Software Foundation,
   12.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   12.23 + *
   12.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
   12.25 + * or visit www.oracle.com if you need additional information or have any
   12.26 + * questions.
   12.27 + */
   12.28 +
   12.29 +HTMLEditor                              = Java.type("javafx.scene.web.HTMLEditor");
   12.30 +HTMLEditorBuilder                       = Java.type("javafx.scene.web.HTMLEditorBuilder");
   12.31 +PopupFeatures                           = Java.type("javafx.scene.web.PopupFeatures");
   12.32 +PromptData                              = Java.type("javafx.scene.web.PromptData");
   12.33 +PromptDataBuilder                       = Java.type("javafx.scene.web.PromptDataBuilder");
   12.34 +WebEngine                               = Java.type("javafx.scene.web.WebEngine");
   12.35 +WebEngineBuilder                        = Java.type("javafx.scene.web.WebEngineBuilder");
   12.36 +WebEvent                                = Java.type("javafx.scene.web.WebEvent");
   12.37 +WebHistory                              = Java.type("javafx.scene.web.WebHistory");
   12.38 +WebView                                 = Java.type("javafx.scene.web.WebView");
   12.39 +WebViewBuilder                          = Java.type("javafx.scene.web.WebViewBuilder");
    13.1 --- a/src/jdk/nashorn/tools/Shell.java	Wed Apr 24 13:36:31 2013 +0200
    13.2 +++ b/src/jdk/nashorn/tools/Shell.java	Wed Apr 24 14:25:28 2013 -0300
    13.3 @@ -47,6 +47,7 @@
    13.4  import jdk.nashorn.internal.parser.Parser;
    13.5  import jdk.nashorn.internal.runtime.Context;
    13.6  import jdk.nashorn.internal.runtime.ErrorManager;
    13.7 +import jdk.nashorn.internal.runtime.Property;
    13.8  import jdk.nashorn.internal.runtime.ScriptEnvironment;
    13.9  import jdk.nashorn.internal.runtime.ScriptFunction;
   13.10  import jdk.nashorn.internal.runtime.ScriptObject;
   13.11 @@ -170,7 +171,11 @@
   13.12              return compileScripts(context, global, files);
   13.13          }
   13.14  
   13.15 -        return runScripts(context, global, files);
   13.16 +        if (env._fx) {
   13.17 +            return runFXScripts(context, global, files);
   13.18 +        } else {
   13.19 +            return runScripts(context, global, files);
   13.20 +        }
   13.21      }
   13.22  
   13.23      /**
   13.24 @@ -328,6 +333,46 @@
   13.25      }
   13.26  
   13.27      /**
   13.28 +     * Runs launches "fx:bootstrap.js" with the given JavaScript files provided
   13.29 +     * as arguments.
   13.30 +     *
   13.31 +     * @param context the nashorn context
   13.32 +     * @param global the global scope
   13.33 +     * @param files the list of script files to provide
   13.34 +     *
   13.35 +     * @return error code
   13.36 +     * @throws IOException when any script file read results in I/O error
   13.37 +     */
   13.38 +    private int runFXScripts(final Context context, final ScriptObject global, final List<String> files) throws IOException {
   13.39 +        final ScriptObject oldGlobal = Context.getGlobal();
   13.40 +        final boolean globalChanged = (oldGlobal != global);
   13.41 +        try {
   13.42 +            if (globalChanged) {
   13.43 +                Context.setGlobal(global);
   13.44 +            }
   13.45 +
   13.46 +            global.addOwnProperty("$GLOBAL", Property.NOT_ENUMERABLE, global);
   13.47 +            global.addOwnProperty("$SCRIPTS", Property.NOT_ENUMERABLE, files);
   13.48 +            context.load(global, "fx:bootstrap.js");
   13.49 +        } catch (final NashornException e) {
   13.50 +            context.getErrorManager().error(e.toString());
   13.51 +            if (context.getEnv()._dump_on_error) {
   13.52 +                e.printStackTrace(context.getErr());
   13.53 +            }
   13.54 +
   13.55 +            return RUNTIME_ERROR;
   13.56 +        } finally {
   13.57 +            context.getOut().flush();
   13.58 +            context.getErr().flush();
   13.59 +            if (globalChanged) {
   13.60 +                Context.setGlobal(oldGlobal);
   13.61 +            }
   13.62 +        }
   13.63 +
   13.64 +        return SUCCESS;
   13.65 +    }
   13.66 +
   13.67 +    /**
   13.68       * Hook to ScriptFunction "apply". A performance metering shell may
   13.69       * introduce enter/exit timing here.
   13.70       *
    14.1 --- a/tools/fxshell/jdk/nashorn/tools/FXShell.java	Wed Apr 24 13:36:31 2013 +0200
    14.2 +++ b/tools/fxshell/jdk/nashorn/tools/FXShell.java	Wed Apr 24 14:25:28 2013 -0300
    14.3 @@ -178,7 +178,7 @@
    14.4       *
    14.5       * @param path Path to UTF-8 encoded JavaScript file.
    14.6       *
    14.7 -     * @return Last evalulation result (discarded.)
    14.8 +     * @return Last evaluation result (discarded.)
    14.9       */
   14.10      private Object load(String path) {
   14.11          try {

mercurial