1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00
cdt/releng/scripts/cleanup.py

8 lines
414 B
Python
Raw Normal View History

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)")