Examples of defineProperty()


Examples of com.intellij.execution.configurations.ParametersList.defineProperty()

    if (!StringUtil.isEmptyOrSpaces(product)) {
      vmParameters.defineProperty("eclipse.product", product);
      vmParameters.defineProperty("eclipse.ignoreApp", "false");
    }
    else if (!StringUtil.isEmptyOrSpaces(application)) {
      vmParameters.defineProperty("eclipse.application", application);
      vmParameters.defineProperty("eclipse.ignoreApp", "false");
    }
    else {
      vmParameters.defineProperty("eclipse.ignoreApp", "true");
    }
View Full Code Here

Examples of com.intellij.execution.configurations.ParametersList.defineProperty()

      vmParameters.defineProperty("eclipse.product", product);
      vmParameters.defineProperty("eclipse.ignoreApp", "false");
    }
    else if (!StringUtil.isEmptyOrSpaces(application)) {
      vmParameters.defineProperty("eclipse.application", application);
      vmParameters.defineProperty("eclipse.ignoreApp", "false");
    }
    else {
      vmParameters.defineProperty("eclipse.ignoreApp", "true");
    }
View Full Code Here

Examples of com.intellij.execution.configurations.ParametersList.defineProperty()

    else if (!StringUtil.isEmptyOrSpaces(application)) {
      vmParameters.defineProperty("eclipse.application", application);
      vmParameters.defineProperty("eclipse.ignoreApp", "false");
    }
    else {
      vmParameters.defineProperty("eclipse.ignoreApp", "true");
    }

    parameters.setMainClass(MAIN_CLASS);
  }
}
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.defineProperty()

                final ScriptableObject prototype = configureClass(config, window);
                if (config.isJsObject()) {
                    // for FF, place object with prototype property in Window scope
                    if (!getWebClient().getBrowserVersion().isIE()) {
                        final SimpleScriptable obj = config.getLinkedClass().newInstance();
                        prototype.defineProperty("__proto__", prototype, ScriptableObject.DONTENUM);
                        obj.defineProperty("prototype", prototype, ScriptableObject.DONTENUM); // but not setPrototype!
                        obj.setParentScope(window);
                        ScriptableObject.defineProperty(window, config.getClassName(), obj, ScriptableObject.DONTENUM);
                        // this obj won't have prototype, constants need to be configured on it again
                        configureConstants(config, obj);
View Full Code Here

Examples of org.mozilla.javascript.NativeArray.defineProperty()

            nodeScript.exec(ctx, globalScope);

            NativeObject proc = (NativeObject) globalScope.get("process");
            NativeArray argv = (NativeArray) proc.get("argv");
            argv.defineProperty("length", 0, ScriptableObject.EMPTY);
            int i = 0;
            argv.put(i++, argv, "node");
            argv.put(i++, argv, "tsc.js");
            if (noStandardLib) {
                argv.put(i++, argv, "--nolib");
View Full Code Here

Examples of org.mozilla.javascript.NativeObject.defineProperty()

            for (String s : args) {
                argv.put(i++, argv, s);
            }

            proc.defineProperty("encoding", encoding, ScriptableObject.READONLY);

            NativeObject mainModule = (NativeObject) proc.get("mainModule");
            mainModule.defineProperty("filename", new File("tsc.js").getAbsolutePath(), ScriptableObject.READONLY);

            tscScript.exec(ctx, globalScope);
View Full Code Here

Examples of org.mozilla.javascript.NativeObject.defineProperty()

            }

            proc.defineProperty("encoding", encoding, ScriptableObject.READONLY);

            NativeObject mainModule = (NativeObject) proc.get("mainModule");
            mainModule.defineProperty("filename", new File("tsc.js").getAbsolutePath(), ScriptableObject.READONLY);

            tscScript.exec(ctx, globalScope);
        } catch (JavaScriptException e) {
            if (e.getValue() instanceof NativeJavaObject) {
                NativeJavaObject njo = (NativeJavaObject) e.getValue();
View Full Code Here

Examples of org.mozilla.javascript.NativeObject.defineProperty()

                        value = Boolean.FALSE;
                    } else {
                        value = rest;           
                    }
                }
                nativeOptions.defineProperty(name, value, NativeObject.READONLY);
            }
        }
        return nativeOptions;
    }
View Full Code Here

Examples of org.mozilla.javascript.NativeObject.defineProperty()

                        value = Boolean.FALSE;
                    } else {
                        value = rest;           
                    }
                }
                nativeOptions.defineProperty(name, value, NativeObject.READONLY);
            }
        }
        return nativeOptions;
    }
View Full Code Here

Examples of org.mozilla.javascript.NativeObject.defineProperty()

                        value = Boolean.FALSE;
                    } else {
                        value = rest;           
                    }
                }
                nativeOptions.defineProperty(name, value, NativeObject.READONLY);
            }
        }
        return nativeOptions;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.