[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[jx8-android] 002 - Importing multiple classes


"Importing multiple classes from Java environment."

#(	#('net.smalltalking.s8.jx8' #(
		MainActivity))

	#('java.lang' #(
		Thread System String Object
		Math "Character" Compiler
	))
	#('java.util' #(
		ArrayList Date Random Timer
	))

	#('org.aleReimondo.node' #(
		CastingUtils ClassUtils ConstructorUtils MemberUtils
		MethodUtils NodeDynamicProxyClass NodeJsException
		VarArgs))
	#('org.aleReimondo.jxcore' #(
		FileManager jxcore))

	Test ListenerTester TestExceptions

	#('dalvik.system' #(
		VMDebug))
) do: [:tuple|
	tuple isString ifTrue: [
		self print: '// import ',tuple.
		Java import: tuple
	] ifFalse: [
		tuple last do: [:each| | path |
			path := tuple first ,$. ,each.
			self print: '// import ',path.
			Java import: path
		]
	]
]