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
| 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){ |
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
| <?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> |
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 List<IPlantWindowInterface> getIplantWindows() { | |
| List<IPlantWindowInterface> windows = Lists.newArrayList(); | |
| for(Widget w : super.getWindows()){ | |
| if(w instanceof IPlantWindowInterface){ | |
| windows.add((IPlantWindowInterface)w); | |
| } | |
| } | |
| return windows; | |
| } |
NewerOlder