This is a sample of how to set up your GXT 3 project to build from nightlies and support-only builds using your support credentials. We build every night if changes have been merged into trunk, and make that available for viewing at http://staging.sencha.com:8080/examples-dev/ as well as from our maven repository.
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
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
<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
<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
[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
<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
/** | |
* 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
package com.example.client; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.regexp.shared.RegExp; | |
import com.google.gwt.user.client.Window; | |
public class Test implements EntryPoint { | |
private static final String REGEX = "([0-9]|[0-5][0-9])"; | |
@Override |
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 HasCellImpl<M,V> implements HasCell<M,V> | |
{ | |
public HasCellImpl(ValueProvider<? super M, V> vp, Cell<V> cell) | |
{ | |
this.cell = cell; | |
this.vp = vp; | |
} | |
@Override |