Skip to content

Instantly share code, notes, and snippets.

View strootman's full-sized avatar
🤘

Jonathan D Strootman strootman

🤘
View GitHub Profile
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:
---------------------------
@strootman
strootman / gist:5274001
Last active December 15, 2015 14:19
Starts at "testBooleanToSplittableConversion"
public void testBooleanToSplittableConversion(){
testNullCheck(convertBooleanWithCreate(Boolean.FALSE)); // WILL NOT "do stuff"
testNullCheck(convertBooleanWithSplit(Boolean.FALSE)); // WILL "do stuff"
testNullCheck(convertBooleanWithCreate(Boolean.TRUE)); // WILL "do stuff"
testNullCheck(convertBooleanWithSplit(Boolean.TRUE)); // WILL "do stuff"
}
public void testNullCheck(Splittable testval){
if(testval != null){
@strootman
strootman / .classpath
Created February 28, 2013 21:57
Project classpath file.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="war/WEB-INF/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="war/WEB-INF/classes" path="src/main/resources">
<attributes>
@strootman
strootman / gist:4997708
Created February 20, 2013 18:18
Example method to add to DEWindowManager
public List<IPlantWindowInterface> getIplantWindows() {
List<IPlantWindowInterface> windows = Lists.newArrayList();
for(Widget w : super.getWindows()){
if(w instanceof IPlantWindowInterface){
windows.add((IPlantWindowInterface)w);
}
}
return windows;
}