Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c5428de3e2d03e61dd836a6816c4bb7abe81ca58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
###############################################################################
# Copyright (c) 2018, 2020 Kichwa Coders Ltd and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
###############################################################################

# This script is used as part of the rebase_helper.sh script

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