Skip to content

Commit b29897e

Browse files
author
zhourenjian
committed
Support "document.class" for document object in Java2Script compiler
1 parent 29a71d3 commit b29897e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTTypeVisitor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ public String shortenQualifiedName(String name) {
152152
}
153153
}
154154
}
155+
String xhtml = "org.eclipse.swt.internal.xhtml.";
156+
index = name.indexOf(xhtml);
157+
if (index != -1) {
158+
String after = name.substring(xhtml.length());
159+
name = after;
160+
}
155161
swt = "org.eclipse.swt";
156162
index = name.indexOf(swt);
157163
if (index != -1) {

0 commit comments

Comments
 (0)