1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
cdt/releng/scripts/cleanup.py
Jonah Graham 5b21097125 Bug 540373: Instructions on how to rebase an old commit onto master
Change-Id: I1bbb82b379c1540ba9c88e6bad35d535a11e150e
2018-11-24 17:50:05 +00:00

7 lines
414 B
Python

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