Wednesday, August 17, 2011

Eclipse Link with Editor

Link with Editor allows a a file in the project explorer to be highlighted when it is the active file in the editor.

Link with Editor inactive:



Link with Editor active:


Using SWT/JFace in Eclipse













To be able to use SWT and JFace in Eclipse, a few jar files need to be included in the Build Path.














You can access the Java Build Path from the project properties.

Sunday, August 7, 2011

Measuring Python code execution time

import time

timestart = time.time()
# code to measure here
print time.time() - timestart, "seconds"

You can also try time.clock(). It is said to be more accurate.