|
|
6be0d9 |
diff -up rhino1_7R3/examples/Matrix.java.build rhino1_7R3/examples/Matrix.java
|
|
|
6be0d9 |
--- rhino1_7R3/examples/Matrix.java.build 2011-05-09 20:04:38.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/examples/Matrix.java 2011-09-14 17:37:15.167031995 +0200
|
|
|
6be0d9 |
@@ -249,7 +249,7 @@ public class Matrix implements Scriptabl
|
|
|
6be0d9 |
* Use the convenience method from Context that takes care of calling
|
|
|
6be0d9 |
* toString, etc.
|
|
|
6be0d9 |
*/
|
|
|
6be0d9 |
- public Object getDefaultValue(Class typeHint) {
|
|
|
6be0d9 |
+ public Object getDefaultValue(Class typeHint) {
|
|
|
6be0d9 |
return "[object Matrix]";
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
diff -up rhino1_7R3/examples/PrimitiveWrapFactory.java.build rhino1_7R3/examples/PrimitiveWrapFactory.java
|
|
|
6be0d9 |
--- rhino1_7R3/examples/PrimitiveWrapFactory.java.build 2011-05-09 20:04:38.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/examples/PrimitiveWrapFactory.java 2011-09-14 17:37:15.168031994 +0200
|
|
|
6be0d9 |
@@ -57,7 +57,7 @@ import org.mozilla.javascript.*;
|
|
|
6be0d9 |
public class PrimitiveWrapFactory extends WrapFactory {
|
|
|
6be0d9 |
@Override
|
|
|
6be0d9 |
public Object wrap(Context cx, Scriptable scope, Object obj,
|
|
|
6be0d9 |
- Class staticType)
|
|
|
6be0d9 |
+ Class staticType)
|
|
|
6be0d9 |
{
|
|
|
6be0d9 |
if (obj instanceof String || obj instanceof Number ||
|
|
|
6be0d9 |
obj instanceof Boolean)
|
|
|
6be0d9 |
diff -up rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java.build rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java
|
|
|
6be0d9 |
--- rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java.build 2011-05-09 20:04:34.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java 2011-09-14 17:37:15.169031993 +0200
|
|
|
6be0d9 |
@@ -75,7 +75,7 @@ public class WrapFactory
|
|
|
6be0d9 |
* @return the wrapped value.
|
|
|
6be0d9 |
*/
|
|
|
6be0d9 |
public Object wrap(Context cx, Scriptable scope,
|
|
|
6be0d9 |
- Object obj, Class staticType)
|
|
|
6be0d9 |
+ Object obj, Class staticType)
|
|
|
6be0d9 |
{
|
|
|
6be0d9 |
if (obj == null || obj == Undefined.instance
|
|
|
6be0d9 |
|| obj instanceof Scriptable)
|
|
|
6be0d9 |
diff -up rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml.build rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml
|
|
|
6be0d9 |
--- rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml.build 2011-05-09 20:04:36.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml 2011-09-14 17:37:15.175031989 +0200
|
|
|
6be0d9 |
@@ -38,7 +38,7 @@
|
|
|
6be0d9 |
|
|
|
6be0d9 |
<target name="properties">
|
|
|
6be0d9 |
<property name="swing-ex-url" value="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip"/>
|
|
|
6be0d9 |
-
|
|
|
6be0d9 |
+
|
|
|
6be0d9 |
property="swing-ex-available"/>
|
|
|
6be0d9 |
</target>
|
|
|
6be0d9 |
|
|
|
6be0d9 |
@@ -46,9 +46,9 @@
|
|
|
6be0d9 |
|
|
|
6be0d9 |
the files we don't need, and change the package
|
|
|
6be0d9 |
-->
|
|
|
6be0d9 |
- <mkdir dir="downloaded"/>
|
|
|
6be0d9 |
- <get src="${swing-ex-url}" dest="downloaded/swingExSrc.zip"/>
|
|
|
6be0d9 |
- <unzip src="downloaded/swingExSrc.zip" dest="downloaded/">
|
|
|
6be0d9 |
+ <mkdir dir="treetable"/>
|
|
|
6be0d9 |
+ <get src="${swing-ex-url}" dest="treetable/swingExSrc.zip"/>
|
|
|
6be0d9 |
+ <unzip src="treetable/swingExSrc.zip" dest="downloaded/">
|
|
|
6be0d9 |
<patternset>
|
|
|
6be0d9 |
<include name="AbstractCellEditor.java"/>
|
|
|
6be0d9 |
<include name="JTreeTable.java"/>
|
|
|
6be0d9 |
@@ -56,58 +56,58 @@
|
|
|
6be0d9 |
<include name="TreeTableModelAdapter.java"/>
|
|
|
6be0d9 |
</patternset>
|
|
|
6be0d9 |
</unzip>
|
|
|
6be0d9 |
- <replace file="downloaded/AbstractCellEditor.java">
|
|
|
6be0d9 |
+ <replace file="treetable/AbstractCellEditor.java">
|
|
|
6be0d9 |
<replacetoken>import java.awt.Component;</replacetoken>
|
|
|
6be0d9 |
<replacevalue>
|
|
|
6be0d9 |
-package org.mozilla.javascript.tools.debugger.downloaded;
|
|
|
6be0d9 |
+package org.mozilla.javascript.tools.debugger.treetable;
|
|
|
6be0d9 |
</replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/AbstractCellEditor.java">
|
|
|
6be0d9 |
+ <replace file="treetable/AbstractCellEditor.java">
|
|
|
6be0d9 |
<replacetoken>import java.awt.event.*;</replacetoken>
|
|
|
6be0d9 |
<replacevalue></replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/AbstractCellEditor.java">
|
|
|
6be0d9 |
+ <replace file="treetable/AbstractCellEditor.java">
|
|
|
6be0d9 |
<replacetoken>import java.awt.AWTEvent;</replacetoken>
|
|
|
6be0d9 |
<replacevalue></replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/AbstractCellEditor.java">
|
|
|
6be0d9 |
+ <replace file="treetable/AbstractCellEditor.java">
|
|
|
6be0d9 |
<replacetoken>import java.io.Serializable;</replacetoken>
|
|
|
6be0d9 |
<replacevalue></replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/JTreeTable.java">
|
|
|
6be0d9 |
+ <replace file="treetable/JTreeTable.java">
|
|
|
6be0d9 |
<replacetoken>import javax.swing.*;</replacetoken>
|
|
|
6be0d9 |
<replacevalue>
|
|
|
6be0d9 |
- package org.mozilla.javascript.tools.debugger.downloaded;
|
|
|
6be0d9 |
+ package org.mozilla.javascript.tools.debugger.treetable;
|
|
|
6be0d9 |
import javax.swing.*;
|
|
|
6be0d9 |
</replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/JTreeTable.java">
|
|
|
6be0d9 |
+ <replace file="treetable/JTreeTable.java">
|
|
|
6be0d9 |
<replacetoken>class ListToTreeSelectionModelWrapper</replacetoken>
|
|
|
6be0d9 |
<replacevalue>public class ListToTreeSelectionModelWrapper</replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/JTreeTable.java">
|
|
|
6be0d9 |
+ <replace file="treetable/JTreeTable.java">
|
|
|
6be0d9 |
<replacetoken>ListSelectionModel getListSelectionModel</replacetoken>
|
|
|
6be0d9 |
<replacevalue>public ListSelectionModel getListSelectionModel</replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/JTreeTable.java">
|
|
|
6be0d9 |
+ <replace file="treetable/JTreeTable.java">
|
|
|
6be0d9 |
<replacetoken>import java.awt.Rectangle;</replacetoken>
|
|
|
6be0d9 |
<replacevalue></replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/TreeTableModel.java">
|
|
|
6be0d9 |
+ <replace file="treetable/TreeTableModel.java">
|
|
|
6be0d9 |
<replacetoken>import javax.swing.tree.TreeModel;</replacetoken>
|
|
|
6be0d9 |
<replacevalue>
|
|
|
6be0d9 |
- package org.mozilla.javascript.tools.debugger.downloaded;
|
|
|
6be0d9 |
+ package org.mozilla.javascript.tools.debugger.treetable;
|
|
|
6be0d9 |
import javax.swing.tree.TreeModel;
|
|
|
6be0d9 |
</replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <replace file="downloaded/TreeTableModelAdapter.java">
|
|
|
6be0d9 |
+ <replace file="treetable/TreeTableModelAdapter.java">
|
|
|
6be0d9 |
<replacetoken>import javax.swing.JTree;</replacetoken>
|
|
|
6be0d9 |
<replacevalue>
|
|
|
6be0d9 |
- package org.mozilla.javascript.tools.debugger.downloaded;
|
|
|
6be0d9 |
+ package org.mozilla.javascript.tools.debugger.treetable;
|
|
|
6be0d9 |
import javax.swing.JTree;
|
|
|
6be0d9 |
</replacevalue>
|
|
|
6be0d9 |
</replace>
|
|
|
6be0d9 |
- <delete file="downloaded/swingExSrc.zip"/>
|
|
|
6be0d9 |
+ <delete file="treetable/swingExSrc.zip"/>
|
|
|
6be0d9 |
</target>
|
|
|
6be0d9 |
|
|
|
6be0d9 |
<target name="download" depends="properties,get-swing-ex"/>
|
|
|
6be0d9 |
diff -up rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java.build rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java
|
|
|
6be0d9 |
--- rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java.build 2011-05-09 20:04:36.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2011-09-14 17:37:15.170031993 +0200
|
|
|
6be0d9 |
@@ -67,7 +67,7 @@ public class JavaPolicySecurity extends
|
|
|
6be0d9 |
return super.defineClass(name, data, 0, data.length, domain);
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
- public void linkClass(Class cl) {
|
|
|
6be0d9 |
+ public void linkClass(Class cl) {
|
|
|
6be0d9 |
resolveClass(cl);
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
diff -up rhino1_7R3/xmlimplsrc/build.xml.build rhino1_7R3/xmlimplsrc/build.xml
|
|
|
6be0d9 |
diff -up rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java.build rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java
|
|
|
6be0d9 |
--- rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java.build 2011-05-09 20:04:38.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java 2011-09-14 17:37:15.171031993 +0200
|
|
|
6be0d9 |
@@ -120,7 +120,7 @@ class Namespace extends IdScriptableObje
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
@Override
|
|
|
6be0d9 |
- public Object getDefaultValue(Class hint) {
|
|
|
6be0d9 |
+ public Object getDefaultValue(Class hint) {
|
|
|
6be0d9 |
return uri();
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
diff -up rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java.build rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java
|
|
|
6be0d9 |
--- rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java.build 2011-05-09 20:04:38.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java 2011-09-14 17:37:15.172031992 +0200
|
|
|
6be0d9 |
@@ -150,7 +150,7 @@ final class QName extends IdScriptableOb
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
@Override
|
|
|
6be0d9 |
- public Object getDefaultValue(Class hint) {
|
|
|
6be0d9 |
+ public Object getDefaultValue(Class hint) {
|
|
|
6be0d9 |
return toString();
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
diff -up rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java.build rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java
|
|
|
6be0d9 |
--- rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java.build 2011-05-09 20:04:38.000000000 +0200
|
|
|
6be0d9 |
+++ rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java 2011-09-14 17:37:15.173031991 +0200
|
|
|
6be0d9 |
@@ -165,7 +165,7 @@ abstract class XMLObjectImpl extends XML
|
|
|
6be0d9 |
}
|
|
|
6be0d9 |
|
|
|
6be0d9 |
@Override
|
|
|
6be0d9 |
- public final Object getDefaultValue(Class hint) {
|
|
|
6be0d9 |
+ public final Object getDefaultValue(Class hint) {
|
|
|
6be0d9 |
return this.toString();
|
|
|
6be0d9 |
}
|