Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 1f5de49b382473e7ba13641787c19e98c11f3210 (plain) (tree)
1
2
3
4
5
6
7






                                                                                                   
loadModule('/System/UI')
while getActiveEditor():
	# We need to cleanup twice. The first one may remove some code (like unneeded
	# type parameters) that then needs to be reformatted.
	executeUI("org.eclipse.jdt.internal.ui.actions.AllCleanUpsAction(getActiveEditor()).run()")
	executeUI("org.eclipse.jdt.internal.ui.actions.AllCleanUpsAction(getActiveEditor()).run()")
	executeUI("getActiveEditor().close(True)")

Back to the top