This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Run with -Dgwt.jjs.traceMethods=Test.* to see optimization progress, then view | |
* compiled JS to see what other rewriting happens | |
* @author colin | |
* | |
*/ | |
public class Test implements EntryPoint { | |
public native void onModuleLoad() /*-{ | |
//Strings appearing multiple times will be interned | |
var a = {test:true}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<set-property name="compiler.emulatedStack" value="true, false" /> | |
<property-provider name="compiler.emulatedStack"> | |
<![CDATA[return (location.search.indexOf("debug=true") != -1) ? "true" : "false";]]> | |
</property-provider> | |
<set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" /> | |
<set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Adding image 'com.sencha.gxt.examples.test.client.Test.MonsterBundle.rez4' | |
[INFO] Preparing method rez40 | |
[INFO] Adding image 'com.sencha.gxt.examples.test.client.Test.MonsterBundle.rez40' | |
[INFO] Preparing method rez400 | |
[INFO] Adding image 'com.sencha.gxt.examples.test.client.Test.MonsterBundle.rez400' | |
[INFO] Preparing method rez401 | |
[INFO] Adding image 'com.sencha.gxt.examples.test.client.Test.MonsterBundle.rez401' | |
[INFO] Preparing method rez402 | |
[INFO] Adding image 'com.sencha.gxt.examples.test.client.Test.MonsterBundle.rez402' | |
[INFO] Preparing method rez403 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.2.1</version> | |
<executions> | |
<execution> | |
<id>verify-modules</id> | |
<phase>test</phase> | |
<goals><goal>exec</goal></goals> | |
<configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.2.1</version> | |
<executions> | |
<execution> | |
<id>compile-js</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>exec</goal> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test implements EntryPoint { | |
public void onModuleLoad() { | |
Widget label = new Label(); | |
Window.alert("HasText? " + (label instanceof HasText)); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String xml = "<root><elt>sum stuff</elt><elt anAttribute=\"attr_value\">more stuff</elt></root>"; | |
XmlXhtmlRenderer renderer = new XmlXhtmlRenderer(); | |
try | |
{ | |
result = renderer.highlight("some-text-can-be-anything", xml, "UTF-8", true); | |
LOGGER.trace("added syntax highlighting to XML: {}", result); | |
} | |
catch (IOException ex) | |
{ | |
LOGGER.error("unable to syntax hightlight adi xml for asset: {}", assetKey, ex); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling module com.sencha.gxt.test.TestRunner | |
--------------------------- | |
JAVA INITIAL: | |
--------------------------- | |
public void display(Splittable result){ | |
Window.alert("boolean value? " + result.asBoolean() + "\n" + "is null? " + (result == null)); | |
} | |
--------------------------- | |
FinalizeVisitor: | |
--------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pom.xml | |
=================================================================== | |
--- pom.xml (revision 1297) | |
+++ pom.xml (working copy) | |
@@ -139,7 +139,7 @@ | |
<dependency> | |
<groupId>com.extjs</groupId> | |
<artifactId>gxt</artifactId> | |
- <version>2.2.5-gwt22</version> | |
+ <version>2.3.0-gwt22</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample implements IsWidget { | |
private final Binder binder = GWT.create(Binder.class); | |
private Widget root; | |
@UiField(provided=true) MyBundle bundle = GWT.create(MyBundle.class); | |
public Sample() { | |
//first, provided items | |
bundle.myCss().ensureInjected(); |