Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iceraj committed Sep 11, 2013
1 parent 82e5f57 commit ff45882
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" output="test-classes" path="test"/>
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT 2.5.1"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
Expand Down
2 changes: 1 addition & 1 deletion .settings/com.google.gwt.eclipse.core.prefs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
eclipse.preferences.version=1
filesCopiedToWebInfLib=gwt-servlet.jar
gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+REVCVUc8L2xvZy1sZXZlbD48b3V0cHV0LXN0eWxlPk9CRlVTQ0FURUQ8L291dHB1dC1zdHlsZT48ZXh0cmEtYXJncz48IVtDREFUQVtdXT48L2V4dHJhLWFyZ3M+PHZtLWFyZ3M+PCFbQ0RBVEFbLVhteDUxMm1dXT48L3ZtLWFyZ3M+PGVudHJ5LXBvaW50LW1vZHVsZT5zdGFyLmdlbmV0aWNzLlN0YXJnZW5ldGljc19nd3RfamF2YTwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+
gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+REVCVUc8L2xvZy1sZXZlbD48b3V0cHV0LXN0eWxlPkRFVEFJTEVEPC9vdXRwdXQtc3R5bGU+PGV4dHJhLWFyZ3M+PCFbQ0RBVEFbXV0+PC9leHRyYS1hcmdzPjx2bS1hcmdzPjwhW0NEQVRBWy1YbXg1MTJtXV0+PC92bS1hcmdzPjxlbnRyeS1wb2ludC1tb2R1bGU+c3Rhci5nZW5ldGljcy5TdGFyZ2VuZXRpY3NfZ3d0X2phdmE8L2VudHJ5LXBvaW50LW1vZHVsZT48L2d3dC1jb21waWxlLXNldHRpbmdzPg\=\=
2 changes: 1 addition & 1 deletion src/star/genetics/Stargenetics_gwt_java.gwt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<inherits name='com.google.gwt.user.User'/>
<!-- <inherits name="com.google.gwt.core.Core"/> -->
<inherits name="com.google.gwt.json.JSON" />
<inherits name="com.google.gwt.logging.Logging"/>
<inherits name="com.google.gwt.logging.Logging"/>

<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
Expand Down
2 changes: 0 additions & 2 deletions src/star/genetics/client/Exec.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package star.genetics.client;

import javax.management.RuntimeErrorException;

import com.google.gwt.core.client.Callback;
import com.google.gwt.core.client.JavaScriptObject;

Expand Down
15 changes: 14 additions & 1 deletion src/star/genetics/client/Stargenetics_gwt_java.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,24 @@ public void onModuleLoad()
setupInterface();
}

private native void setupInterface()
static {
setupInterface();
}

private static native void setupInterface()
/*-{
$wnd.__sg_bg_exec = $entry(@star.genetics.client.Stargenetics_gwt_java::execute(*));
console.info( "setup interface" ) ;
}-*/;

private static native void log( String str )
/*-{
console.info( str ) ;
}-*/;
public static void execute(Exec obj)
{
log( "execute start " );

if( obj != null )
{
String token = obj.getToken();
Expand All @@ -60,6 +71,8 @@ public static void execute(Exec obj)
{
logger.log( Level.WARNING , "Input argument invalid.");
}
log( "execute done " );

}


Expand Down
2 changes: 1 addition & 1 deletion test/star/genetics/tests/JSONModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.google.gwt.json.client.JSONString;
import com.google.gwt.junit.client.GWTTestCase;

import static org.junit.Assert.*;
import static org.junit.Assert.*;

public class JSONModel extends GWTTestCase
{
Expand Down

0 comments on commit ff45882

Please sign in to comment.