From a6d79300f7e7795ac48c06753317274fce3e3ffa Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Thu, 30 Jan 2025 09:00:56 +0100 Subject: [PATCH] isAutobuild without parameters, deprecated the old one The boolean enable parameter was not used anyway: it must have been a copy and paste error --- .../ui/testing/util/IResourcesSetupUtil.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/org.eclipse.xtext.ui.testing/src/org/eclipse/xtext/ui/testing/util/IResourcesSetupUtil.java b/org.eclipse.xtext.ui.testing/src/org/eclipse/xtext/ui/testing/util/IResourcesSetupUtil.java index c3e7b995975..5329ff9118d 100644 --- a/org.eclipse.xtext.ui.testing/src/org/eclipse/xtext/ui/testing/util/IResourcesSetupUtil.java +++ b/org.eclipse.xtext.ui.testing/src/org/eclipse/xtext/ui/testing/util/IResourcesSetupUtil.java @@ -390,11 +390,22 @@ public static void reallyWaitForAutoBuild() { public static void waitForBuild() { waitForBuild(null); } - - public static boolean isAutobuild(boolean enable) { + + /** + * @since 2.38 + */ + public static boolean isAutobuild() { return ResourcesPlugin.getWorkspace().getDescription().isAutoBuilding(); } + /** + * @deprecated use {@link #isAutobuild()} instead (the boolean parameter is unused). + */ + @Deprecated(forRemoval = true) + public static boolean isAutobuild(boolean enable) { + return isAutobuild(); + } + public static boolean setAutobuild(boolean enable) { IWorkspaceDescription description = ResourcesPlugin.getWorkspace().getDescription(); boolean oldValue = description.isAutoBuilding();