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();