File tree Expand file tree Collapse file tree 6 files changed +22
-12
lines changed
main/java/com/github/timeu/gwtlibs/processingjsgwt/client
test/java/com/github/timeu/gwtlibs/processingjsgwt/client
src/main/java/sample/client Expand file tree Collapse file tree 6 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 109
109
<plugin >
110
110
<groupId >net.ltgt.gwt.maven</groupId >
111
111
<artifactId >gwt-maven-plugin</artifactId >
112
- <version >1.0-rc-2 </version >
112
+ <version >1.0-rc-4 </version >
113
113
<extensions >true</extensions >
114
114
<configuration >
115
115
<devMode >false</devMode >
118
118
<arg >-runStyle</arg >
119
119
<arg >Manual:1</arg >
120
120
<arg >-XjsInteropMode</arg >
121
- <arg >JS </arg >
121
+ <arg >JS_RC </arg >
122
122
</testArgs >
123
123
<startupUrls >
124
124
<startupUrl >processingjsgwtsample/index.html</startupUrl >
125
125
</startupUrls >
126
126
<compilerArgs >
127
127
<compilerArg >-XjsInteropMode</compilerArg >
128
- <compilerArg >JS </compilerArg >
128
+ <compilerArg >JS_RC </compilerArg >
129
129
</compilerArgs >
130
130
<devmodeArgs >
131
131
<arg >-XjsInteropMode</arg >
132
- <arg >JS </arg >
132
+ <arg >JS_RC </arg >
133
133
<devmodeArg >-incremental</devmodeArg >
134
134
</devmodeArgs >
135
135
<codeserverArgs >
136
136
<arg >-XjsInteropMode</arg >
137
- <arg >JS </arg >
137
+ <arg >JS_RC </arg >
138
138
<arg >-incremental</arg >
139
139
</codeserverArgs >
140
140
<moduleName >${gwt.module} </moduleName >
Original file line number Diff line number Diff line change 48
48
<dependency >
49
49
<groupId >com.google.gwt</groupId >
50
50
<artifactId >gwt-dev</artifactId >
51
- <scope >provided</scope >
52
51
</dependency >
53
52
<dependency >
54
53
<groupId >com.github.timeu.gwt-libs.processingjs-gwt</groupId >
Original file line number Diff line number Diff line change 19
19
import com .github .timeu .gwtlibs .processingjsgwt .client .ProcessingInstance ;
20
20
import com .google .gwt .core .client .EntryPoint ;
21
21
import com .google .gwt .core .client .GWT ;
22
- import com .google .gwt .core .client .js .JsType ;
23
22
import com .google .gwt .resources .client .ClientBundle ;
24
23
import com .google .gwt .resources .client .ExternalTextResource ;
25
24
import com .google .gwt .user .client .ui .RootPanel ;
25
+ import jsinterop .annotations .JsPackage ;
26
+ import jsinterop .annotations .JsType ;
26
27
27
28
/**
28
29
* Initializes the application. Nothing to see here: everything interesting
29
30
* happens in the presenters.
30
31
*/
31
32
public class SampleEntryPoint implements EntryPoint {
32
33
33
- @ JsType
34
+ @ JsType ( isNative = true )
34
35
public interface MyCustomInstance extends ProcessingInstance {
35
36
String testMethod (String msg );
36
37
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=" true" type =" JAVA_MODULE" version =" 4" >
3
+ <component name =" FacetManager" >
4
+ <facet type =" gwt" name =" GWT" >
5
+ <configuration >
6
+ <setting name =" compilerMaxHeapSize" value =" 1024" />
7
+ <setting name =" gwtScriptOutputStyle" value =" DETAILED" />
8
+ <setting name =" gwtSdkUrl" value =" file://" />
9
+ </configuration >
10
+ </facet >
11
+ </component >
3
12
<component name =" NewModuleRootManager" LANGUAGE_LEVEL =" JDK_1_8" inherit-compiler-output =" false" >
4
13
<output url =" file://$MODULE_DIR$/target/classes" />
5
14
<output-test url =" file://$MODULE_DIR$/target/test-classes" />
Original file line number Diff line number Diff line change 1
1
package com .github .timeu .gwtlibs .processingjsgwt .client ;
2
2
3
- import com .google .gwt .core .client .js .JsType ;
4
3
4
+ import jsinterop .annotations .JsPackage ;
5
+ import jsinterop .annotations .JsType ;
5
6
6
7
/**
7
8
* ProcessingInstance is the base class that is used to interface with the ProcessingJS sketch.
8
9
* Every ProcessingJS sketch has some default methods (draw, setup, etc)
9
10
* Users should create their own custom interface extending ProcessingInstance and define the API methods
10
11
* similar to draw and size. The custom interface must be annotated with {@link @JsType}
11
12
*/
12
- @ JsType
13
+ @ JsType ( isNative = true , namespace = JsPackage . GLOBAL , name = "Processing" )
13
14
public interface ProcessingInstance {
14
15
15
16
/**
Original file line number Diff line number Diff line change 1
1
package com .github .timeu .gwtlibs .processingjsgwt .client ;
2
2
3
- import com .google .gwt .core .client .js .JsType ;
4
3
import com .google .gwt .junit .client .GWTTestCase ;
5
4
import com .google .gwt .user .client .ui .RootPanel ;
5
+ import jsinterop .annotations .JsType ;
6
6
7
7
8
8
/**
11
11
12
12
public class ProcessingTest extends GWTTestCase {
13
13
14
- @ JsType
14
+ @ JsType ( isNative = true )
15
15
public interface MyProcessingInstance extends ProcessingInstance {
16
16
String testMethod (String msg );
17
17
}
You can’t perform that action at this time.
0 commit comments