के साथ स्कैला एसडब्ल्यूटी परियोजना एसबीटी में आप स्कैला एसडब्ल्यूटी परियोजना कैसे बनाते हैं?एसबीटी
मुझे पता है कि आप Git संग्रह का उपयोग कर सकते हैं:
RootProject(uri("http://git.eclipse.org/gitroot/platform/eclipse.platform.swt.binaries.git"))
लेकिन मैं नहीं जानता कि कैसे और अगर यह SWT साथ संभव है।
अग्रिम धन्यवाद, Etam।
संपादित:
मैं इसे मैन्युअल डाउनलोड करने के लिए किया था। यह कम्पाइल लेकिन चल रहा है, जबकि मैं अमान्य धागा पहुँच त्रुटि मिलती है:
***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