SBTでのScala SWTプロジェクトの作成方法を教えてください。SBTを使用したScala SWTプロジェクト
私はあなたがGITリポジトリを使用することができることを知っている:
RootProject(uri("http://git.eclipse.org/gitroot/platform/eclipse.platform.swt.binaries.git"))
しかし、私はそれはSWTで可能であるかとかどうかを知りません。
ありがとうございます。 Etam。
EDIT:
私はそれを手動でダウンロードする必要がありました。私は無効なスレッドアクセスエラーを取得する実行しながら、コンパイルされますが:
***WARNING: Display must be created on main thread due to Cocoa restrictions.
[error] (run-main) org.eclipse.swt.SWTException: Invalid thread access
私が使用している場合でも:
javaOptions := Seq("-XstartOnFirstThread", "-d64")
これはメインクラスです:
import org.eclipse.swt._
import org.eclipse.swt.layout._
import org.eclipse.swt.widgets._
object Main extends App {
val display = new Display
val shell = new Shell(display)
shell.setLayout(new GridLayout())
shell.pack
shell.open
while (!shell.isDisposed) {
if (!display.readAndDispatch)
display.sleep
}
display.dispose
}
おかげで再び、 エタム。
この問題の解決方法をお探しですか? – mariosangiorgio