paulirotta / Tantalum

Tantalum Cross Platform Library
12 stars 6 forks source link

PlatformAdapter for JSE #34

Open vivainio opened 11 years ago

vivainio commented 11 years ago

For development purposes, Java Standard Edition platformadapter would be useful

vivainio commented 11 years ago

When used from JSE, I currently get:

xception in thread "main" java.lang.UnsupportedOperationException: SET PROGRAM: Unsupported platform- getIntance(program) argument must be JME MIDlet or Android Activity : Hello at org.tantalum.PlatformUtils.setProgram(PlatformUtils.java:165) at Hello.main(Hello.java:12)

(obviously, as that's how the implementation currently is)

paulirotta commented 11 years ago

I think the port to JSE will be faster/better after we have a file-system-based cache implementation. Adding a database seemed rather heavy when I looked at how big this would be.

The other question is: which UI do we assume as a base for things like runOnUIThread() ? JavaFX?

vivainio commented 11 years ago

For runOnUiThread, let's just run the exec() immediately for J2SE to avoid being opinionated.