Needed includes for Smarthome Designer

which includes do I have to list explicitly in the include section in my rules so Smarthome Designer will resolve functions, variable etc.
for example for

import org.openhab.model.script.actions.*

rule "energy hourly"
when 
	Time cron "0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?"
then
        var Number Prev = ElectricityPrev.state
	var Number Cur = ElectricityTotalConsumption.state
	var Number Delta = (Cur - Prev)*12
	postUpdate(ElectricityDelta, Delta)
	postUpdate(ElectricityPrev, Cur)
end

Smarthome Designer does not know about “postUpdate”

the same for bindings:

import java.util.concurrent.locks.ReentrantLock

var java.util.concurrent.locks.ReentrantLock lock  = new java.util.concurrent.locks.ReentrantLock()

rule ConcurrentCode
when
	Item EntryDO changed
then
	lock.lock()
	try {
		sendMail("lukic@gmx.ch", "Entry Door", "The Entry door was opened or closed")
	} finally{
	   lock.unlock()
	}
end

sendMail is unknown.

Designer has a few problems for quite some time and shows a lot of syntax errors (especially if you use the 0.9.0 snapshots). My 0.8 version shows the same errors (but you can just ignore them) and as far as I can follow along here on the forum we will have to wait until these issues will be fixed.
If you can help, I am sure that will be welcome.

0.8 seems to do a better job, stepped back to 0.8
at least the items and attributes are ok now.